summaryrefslogtreecommitdiff
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index b39f32ac8f8..04d3e46031e 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -58,6 +58,11 @@ int nr_irqs = NR_IRQS;
EXPORT_SYMBOL_GPL(nr_irqs);
#ifdef CONFIG_SPARSE_IRQ
+
+#ifndef max_nr_irqs
+#define max_nr_irqs(nr_cpus) NR_IRQS
+#endif
+
static struct irq_desc irq_desc_init = {
.irq = -1,
.status = IRQ_DISABLED,