summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-10-16 14:50:27 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:53:30 +0200
commit2be3b52a5785a6a5c5349fbd315f57595f7074be (patch)
tree80654edb89a223f86b66519c1d9f12121ce09b34 /include
parent811410fdb6b9d82a518542289efe9b2a51e3cbfb (diff)
downloadop-kernel-dev-2be3b52a5785a6a5c5349fbd315f57595f7074be.zip
op-kernel-dev-2be3b52a5785a6a5c5349fbd315f57595f7074be.tar.gz
proc: fixup irq iterator
There is no need for irq_desc here. Even for sparse_irq we can handle this clever in for_each_irq_nr(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/irq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 31632aa..0618fb3 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -27,6 +27,9 @@ extern int nr_irqs;
irq > 0; irq--, desc--)
#endif
+#define for_each_irq_nr(irq) \
+ for (irq = 0; irq < nr_irqs; irq++)
+
#ifndef CONFIG_S390
#include <linux/linkage.h>
OpenPOWER on IntegriCloud