Commit 811410fd authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

genirq: add reverse iterator for irq_desc

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 249f6d9e
......@@ -21,6 +21,10 @@ extern int nr_irqs;
# define for_each_irq_desc(irq, desc) \
for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc++)
# define for_each_irq_desc_reverse(irq, desc) \
for (irq = nr_irqs -1, desc = irq_desc + (nr_irqs -1 ); \
irq > 0; irq--, desc--)
#endif
#ifndef CONFIG_S390
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment