lkml.org 
[lkml]   [2008]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/3] serial: change irq_lists to use dyn_array
Date

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
drivers/serial/8250.c | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-2.6/drivers/serial/8250.c
===================================================================
--- linux-2.6.orig/drivers/serial/8250.c
+++ linux-2.6/drivers/serial/8250.c
@@ -149,7 +149,12 @@ struct irq_info {
struct list_head *head;
};

+#if defined(CONFIG_HAVE_DYN_ARRAY) && !defined(MODULE)
+static struct irq_info *irq_lists;
+DEFINE_DYN_ARRAY(irq_lists, sizeof(struct irq_info), nr_irqs, PAGE_SIZE, NULL);
+#else
static struct irq_info irq_lists[NR_IRQS];
+#endif

/*
* Here we define the default xmit fifo size used for each type of UART.

\
 
 \ /
  Last update: 2008-07-31 06:17    [W:0.156 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site