diff options
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index b39f32ac8f80..04d3e46031e5 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -58,6 +58,11 @@ int nr_irqs = NR_IRQS; | |||
58 | EXPORT_SYMBOL_GPL(nr_irqs); | 58 | EXPORT_SYMBOL_GPL(nr_irqs); |
59 | 59 | ||
60 | #ifdef CONFIG_SPARSE_IRQ | 60 | #ifdef CONFIG_SPARSE_IRQ |
61 | |||
62 | #ifndef max_nr_irqs | ||
63 | #define max_nr_irqs(nr_cpus) NR_IRQS | ||
64 | #endif | ||
65 | |||
61 | static struct irq_desc irq_desc_init = { | 66 | static struct irq_desc irq_desc_init = { |
62 | .irq = -1, | 67 | .irq = -1, |
63 | .status = IRQ_DISABLED, | 68 | .status = IRQ_DISABLED, |