aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h8
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
18extern 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
24extern int nr_irqs;
23#endif 25#endif
24 26
25/* 27/*