diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-16 16:50:27 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 18:53:30 +0400 |
commit | 2be3b52a5785a6a5c5349fbd315f57595f7074be (patch) | |
tree | 80654edb89a223f86b66519c1d9f12121ce09b34 /include/linux/irq.h | |
parent | 811410fdb6b9d82a518542289efe9b2a51e3cbfb (diff) | |
download | linux-2be3b52a5785a6a5c5349fbd315f57595f7074be.tar.xz |
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/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 31632aa65d16..0618fb362cb4 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> |