aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-27 14:55:03 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 10:39:08 -0400
commitb683de2b3cb17bb10fa6fd4af614dc75b5749fe0 (patch)
treee1a799293b218f5c13d4903c57fab144b2f433b3 /include/linux/irq.h
parentaa99ec0f3f26bf2bcd0fa5176de93598427f1e5e (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 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 096b74d5d0d7..ef878823ee3b 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -214,6 +214,10 @@ struct irq_chip {
214 */ 214 */
215#include <asm/hw_irq.h> 215#include <asm/hw_irq.h>
216 216
217#ifndef NR_IRQS_LEGACY
218# define NR_IRQS_LEGACY 0
219#endif
220
217#ifndef ARCH_IRQ_INIT_FLAGS 221#ifndef ARCH_IRQ_INIT_FLAGS
218# define ARCH_IRQ_INIT_FLAGS 0 222# define ARCH_IRQ_INIT_FLAGS 0
219#endif 223#endif