summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 04:10:19 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 04:10:19 +0300
commit7238eb4ca35cd63340dc02caf757376e40c1210c (patch)
treefbaf811a0d9a5834ffa0f23baad2ad8f126d2f36
parentf94181da7192f4ed8ccb1b633ea4ce56954df130 (diff)
parentbe92d7af38fb8a91f8575ab2272e00f2e51667ff (diff)
downloadlinux-7238eb4ca35cd63340dc02caf757376e40c1210c.tar.xz
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
-rw-r--r--include/linux/irqnr.h7
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 @@
#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++)