diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-16 08:50:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:30 -0400 |
commit | 2be3b52a5785a6a5c5349fbd315f57595f7074be (patch) | |
tree | 80654edb89a223f86b66519c1d9f12121ce09b34 /include/linux | |
parent | 811410fdb6b9d82a518542289efe9b2a51e3cbfb (diff) |
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')
-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; | |||
27 | irq > 0; irq--, desc--) | 27 | irq > 0; irq--, desc--) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #define for_each_irq_nr(irq) \ | ||
31 | for (irq = 0; irq < nr_irqs; irq++) | ||
32 | |||
30 | #ifndef CONFIG_S390 | 33 | #ifndef CONFIG_S390 |
31 | 34 | ||
32 | #include <linux/linkage.h> | 35 | #include <linux/linkage.h> |