diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 20:10:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 20:10:19 -0500 |
commit | 7238eb4ca35cd63340dc02caf757376e40c1210c (patch) | |
tree | fbaf811a0d9a5834ffa0f23baad2ad8f126d2f36 /include/linux | |
parent | f94181da7192f4ed8ccb1b633ea4ce56954df130 (diff) | |
parent | be92d7af38fb8a91f8575ab2272e00f2e51667ff (diff) |
Merge branch 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
genirq: provide irq_to_desc() to non-genirq architectures too
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/irqnr.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h index 5504a5c97836..86af92e9e84c 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h | |||
@@ -8,7 +8,12 @@ | |||
8 | 8 | ||
9 | #ifndef CONFIG_GENERIC_HARDIRQS | 9 | #ifndef CONFIG_GENERIC_HARDIRQS |
10 | #include <asm/irq.h> | 10 | #include <asm/irq.h> |
11 | # define nr_irqs NR_IRQS | 11 | |
12 | /* | ||
13 | * Wrappers for non-genirq architectures: | ||
14 | */ | ||
15 | #define nr_irqs NR_IRQS | ||
16 | #define irq_to_desc(irq) (&irq_desc[irq]) | ||
12 | 17 | ||
13 | # define for_each_irq_desc(irq, desc) \ | 18 | # define for_each_irq_desc(irq, desc) \ |
14 | for (irq = 0; irq < nr_irqs; irq++) | 19 | for (irq = 0; irq < nr_irqs; irq++) |