Commit 7238eb4ca35cd63340dc02caf757376e40c1210c
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
Showing 1 changed file Side-by-side Diff
include/linux/irqnr.h
... | ... | @@ -8,7 +8,12 @@ |
8 | 8 | |
9 | 9 | #ifndef CONFIG_GENERIC_HARDIRQS |
10 | 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 | 18 | # define for_each_irq_desc(irq, desc) \ |
14 | 19 | for (irq = 0; irq < nr_irqs; irq++) |