aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 04d3e46031e5..375d68cd5bf0 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -59,10 +59,6 @@ EXPORT_SYMBOL_GPL(nr_irqs);
59 59
60#ifdef CONFIG_SPARSE_IRQ 60#ifdef CONFIG_SPARSE_IRQ
61 61
62#ifndef max_nr_irqs
63#define max_nr_irqs(nr_cpus) NR_IRQS
64#endif
65
66static struct irq_desc irq_desc_init = { 62static struct irq_desc irq_desc_init = {
67 .irq = -1, 63 .irq = -1,
68 .status = IRQ_DISABLED, 64 .status = IRQ_DISABLED,
@@ -137,9 +133,8 @@ int __init early_irq_init(void)
137 int legacy_count; 133 int legacy_count;
138 int i; 134 int i;
139 135
140 /* initialize nr_irqs based on nr_cpu_ids */ 136 /* initialize nr_irqs based on nr_cpu_ids */
141 nr_irqs = max_nr_irqs(nr_cpu_ids); 137 arch_probe_nr_irqs();
142
143 printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d\n", NR_IRQS, nr_irqs); 138 printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d\n", NR_IRQS, nr_irqs);
144 139
145 desc = irq_desc_legacy; 140 desc = irq_desc_legacy;