Messages in this thread Patch in this message | | | From | Yinghai Lu <> | Subject | [PATCH 1/3] serial: change irq_lists to use dyn_array | Date | Wed, 30 Jul 2008 21:10:10 -0700 |
| |
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.
| |