diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-27 14:55:03 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:39:08 -0400 |
commit | b683de2b3cb17bb10fa6fd4af614dc75b5749fe0 (patch) | |
tree | e1a799293b218f5c13d4903c57fab144b2f433b3 /arch/x86/kernel/apic/io_apic.c | |
parent | aa99ec0f3f26bf2bcd0fa5176de93598427f1e5e (diff) |
genirq: Query arch for number of early descriptors
sparse irq sets up NR_IRQS_LEGACY irq descriptors and archs then go
ahead and allocate more.
Use the unused return value of arch_probe_nr_irqs() to let the
architecture return the number of early allocations. Fix up all users.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index f1efebaf551..5aee1d1a306 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -3880,7 +3880,7 @@ int __init arch_probe_nr_irqs(void) | |||
3880 | if (nr < nr_irqs) | 3880 | if (nr < nr_irqs) |
3881 | nr_irqs = nr; | 3881 | nr_irqs = nr; |
3882 | 3882 | ||
3883 | return 0; | 3883 | return NR_IRQS_LEGACY; |
3884 | } | 3884 | } |
3885 | #endif | 3885 | #endif |
3886 | 3886 | ||