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 /kernel/softirq.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 'kernel/softirq.c')
-rw-r--r-- | kernel/softirq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 07b4f1b1a73a..14a7b80b2cce 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -886,9 +886,10 @@ int __init __weak early_irq_init(void) | |||
886 | return 0; | 886 | return 0; |
887 | } | 887 | } |
888 | 888 | ||
889 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
889 | int __init __weak arch_probe_nr_irqs(void) | 890 | int __init __weak arch_probe_nr_irqs(void) |
890 | { | 891 | { |
891 | return 0; | 892 | return NR_IRQS_LEGACY; |
892 | } | 893 | } |
893 | 894 | ||
894 | int __init __weak arch_early_irq_init(void) | 895 | int __init __weak arch_early_irq_init(void) |
@@ -900,3 +901,4 @@ int __weak arch_init_chip_data(struct irq_desc *desc, int node) | |||
900 | { | 901 | { |
901 | return 0; | 902 | return 0; |
902 | } | 903 | } |
904 | #endif | ||