aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-10-16 08:16:11 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:30 -0400
commit811410fdb6b9d82a518542289efe9b2a51e3cbfb (patch)
tree50503e472de487366eb497464be80d453379d977
parent249f6d9eab372790579ada8991bba3384c204e06 (diff)
genirq: add reverse iterator for irq_desc
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-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 38bf89f2ade0..31632aa65d16 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -21,6 +21,10 @@ extern int nr_irqs;
21 21
22# define for_each_irq_desc(irq, desc) \ 22# define for_each_irq_desc(irq, desc) \
23 for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc++) 23 for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc++)
24
25# define for_each_irq_desc_reverse(irq, desc) \
26 for (irq = nr_irqs -1, desc = irq_desc + (nr_irqs -1 ); \
27 irq > 0; irq--, desc--)
24#endif 28#endif
25 29
26#ifndef CONFIG_S390 30#ifndef CONFIG_S390