irq: make irq_desc to use dyn_array

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Yinghai Lu 2008-08-19 20:50:00 -07:00 committed by Ingo Molnar
parent 5aeecaf490
commit d60458b224
2 changed files with 35 additions and 0 deletions

View file

@ -179,7 +179,11 @@ struct irq_desc {
const char *name;
} ____cacheline_internodealigned_in_smp;
#ifdef CONFIG_HAVE_DYN_ARRAY
extern struct irq_desc *irq_desc;
#else
extern struct irq_desc irq_desc[NR_IRQS];
#endif
/*
* Migration helpers for obsolete names, they will go away: