diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-15 07:07:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:14 -0400 |
commit | 7ef0c30dbf96a8d9a234e90c248eb19df3c031be (patch) | |
tree | e9e77d581e70cee0725ad568d42c0769783f4f89 /include | |
parent | 81608f3c254512b906ab78082ec5966b376aacd5 (diff) |
genirq: define nr_irqs for architectures with GENERIC_HARDIRQS=n
Revert the sparse irq changes in m68k/s390/sparc and just define
nr_irqs as NR_IRQS for those architectures.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/interrupt.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index d4039a0b23f4..5a57df2ee922 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -15,11 +15,13 @@ | |||
15 | #include <asm/ptrace.h> | 15 | #include <asm/ptrace.h> |
16 | #include <asm/system.h> | 16 | #include <asm/system.h> |
17 | 17 | ||
18 | extern int nr_irqs; | ||
19 | |||
20 | #ifndef CONFIG_GENERIC_HARDIRQS | 18 | #ifndef CONFIG_GENERIC_HARDIRQS |
21 | #define for_each_irq_desc(irq, desc) \ | 19 | # define for_each_irq_desc(irq, desc) \ |
22 | for (irq = 0; irq < nr_irqs; irq++) | 20 | for (irq = 0; irq < nr_irqs; irq++) |
21 | |||
22 | # define nr_irqs NR_IRQS | ||
23 | #else | ||
24 | extern int nr_irqs; | ||
23 | #endif | 25 | #endif |
24 | 26 | ||
25 | /* | 27 | /* |