aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/irq.h')
-rw-r--r--include/asm-ppc/irq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-ppc/irq.h b/include/asm-ppc/irq.h
index bd9674807f05..137ea0cf34d3 100644
--- a/include/asm-ppc/irq.h
+++ b/include/asm-ppc/irq.h
@@ -24,6 +24,12 @@
24 */ 24 */
25#define ARCH_HAS_IRQ_PER_CPU 25#define ARCH_HAS_IRQ_PER_CPU
26 26
27#define get_irq_desc(irq) (&irq_desc[(irq)])
28
29/* Define a way to iterate across irqs. */
30#define for_each_irq(i) \
31 for ((i) = 0; (i) < NR_IRQS; ++(i))
32
27#if defined(CONFIG_40x) 33#if defined(CONFIG_40x)
28#include <asm/ibm4xx.h> 34#include <asm/ibm4xx.h>
29 35