|
@@ -8,7 +8,12 @@
|
|
|
|
|
|
#ifndef CONFIG_GENERIC_HARDIRQS
|
|
#ifndef CONFIG_GENERIC_HARDIRQS
|
|
#include <asm/irq.h>
|
|
#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) \
|
|
# define for_each_irq_desc(irq, desc) \
|
|
for (irq = 0; irq < nr_irqs; irq++)
|
|
for (irq = 0; irq < nr_irqs; irq++)
|