diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-16 14:50:27 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:53:30 +0200 |
commit | 2be3b52a5785a6a5c5349fbd315f57595f7074be (patch) | |
tree | 80654edb89a223f86b66519c1d9f12121ce09b34 /include/linux | |
parent | 811410fdb6b9d82a518542289efe9b2a51e3cbfb (diff) | |
download | linux-2be3b52a5785a6a5c5349fbd315f57595f7074be.tar.gz linux-2be3b52a5785a6a5c5349fbd315f57595f7074be.tar.bz2 linux-2be3b52a5785a6a5c5349fbd315f57595f7074be.zip |
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; 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> |