diff options
Diffstat (limited to 'include/linux/irqnr.h')
-rw-r--r-- | include/linux/irqnr.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h index 0a2dc46cdaf6..fdd5cc16c9c4 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h | |||
@@ -4,23 +4,6 @@ | |||
4 | #include <uapi/linux/irqnr.h> | 4 | #include <uapi/linux/irqnr.h> |
5 | 5 | ||
6 | 6 | ||
7 | #ifndef CONFIG_GENERIC_HARDIRQS | ||
8 | #include <asm/irq.h> | ||
9 | |||
10 | /* | ||
11 | * Wrappers for non-genirq architectures: | ||
12 | */ | ||
13 | #define nr_irqs NR_IRQS | ||
14 | #define irq_to_desc(irq) (&irq_desc[irq]) | ||
15 | |||
16 | # define for_each_irq_desc(irq, desc) \ | ||
17 | for (irq = 0; irq < nr_irqs; irq++) | ||
18 | |||
19 | # define for_each_irq_desc_reverse(irq, desc) \ | ||
20 | for (irq = nr_irqs - 1; irq >= 0; irq--) | ||
21 | |||
22 | #else /* CONFIG_GENERIC_HARDIRQS */ | ||
23 | |||
24 | extern int nr_irqs; | 7 | extern int nr_irqs; |
25 | extern struct irq_desc *irq_to_desc(unsigned int irq); | 8 | extern struct irq_desc *irq_to_desc(unsigned int irq); |
26 | unsigned int irq_get_next_irq(unsigned int offset); | 9 | unsigned int irq_get_next_irq(unsigned int offset); |
@@ -50,8 +33,6 @@ unsigned int irq_get_next_irq(unsigned int offset); | |||
50 | for (irq = irq_get_next_irq(0); irq < nr_irqs; \ | 33 | for (irq = irq_get_next_irq(0); irq < nr_irqs; \ |
51 | irq = irq_get_next_irq(irq + 1)) | 34 | irq = irq_get_next_irq(irq + 1)) |
52 | 35 | ||
53 | #endif /* CONFIG_GENERIC_HARDIRQS */ | ||
54 | |||
55 | #define for_each_irq_nr(irq) \ | 36 | #define for_each_irq_nr(irq) \ |
56 | for (irq = 0; irq < nr_irqs; irq++) | 37 | for (irq = 0; irq < nr_irqs; irq++) |
57 | 38 | ||