diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 17:10:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 17:10:19 -0800 |
commit | 7238eb4ca35cd63340dc02caf757376e40c1210c (patch) | |
tree | fbaf811a0d9a5834ffa0f23baad2ad8f126d2f36 /include | |
parent | f94181da7192f4ed8ccb1b633ea4ce56954df130 (diff) | |
parent | be92d7af38fb8a91f8575ab2272e00f2e51667ff (diff) | |
download | linux-3.10-7238eb4ca35cd63340dc02caf757376e40c1210c.tar.gz linux-3.10-7238eb4ca35cd63340dc02caf757376e40c1210c.tar.bz2 linux-3.10-7238eb4ca35cd63340dc02caf757376e40c1210c.zip |
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')
-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 5504a5c9783..86af92e9e84 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h @@ -8,7 +8,12 @@ #ifndef CONFIG_GENERIC_HARDIRQS #include <asm/irq.h> -# define nr_irqs NR_IRQS + +/* + * Wrappers for non-genirq architectures: + */ +#define nr_irqs NR_IRQS +#define irq_to_desc(irq) (&irq_desc[irq]) # define for_each_irq_desc(irq, desc) \ for (irq = 0; irq < nr_irqs; irq++) |