Revert the sparse irq changes in m68k/s390/sparc and just define
nr_irqs as NR_IRQS for those architectures.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
#include <asm/q40ints.h>
#endif
-int nr_irqs = NR_IRQS;
-EXPORT_SYMBOL(nr_irqs);
-
extern u32 auto_irqhandler_fixup[];
extern u32 user_irqhandler_fixup[];
extern u16 user_irqvec_fixup[];
#include <linux/proc_fs.h>
#include <linux/profile.h>
-int nr_irqs = NR_IRQS;
-EXPORT_SYMBOL(nr_irqs);
-
/*
* show_interrupts is needed by /proc/interrupts.
*/
#define SMP_NOP2
#define SMP_NOP3
#endif /* SMP */
-
-int nr_irqs = NR_IRQS;
-EXPORT_SYMBOL(nr_irqs);
-
unsigned long __raw_local_irq_save(void)
{
unsigned long retval;
#include <asm/ptrace.h>
#include <asm/system.h>
-extern int nr_irqs;
-
#ifndef CONFIG_GENERIC_HARDIRQS
-#define for_each_irq_desc(irq, desc) \
+# define for_each_irq_desc(irq, desc) \
for (irq = 0; irq < nr_irqs; irq++)
+
+# define nr_irqs NR_IRQS
+#else
+extern int nr_irqs;
#endif
/*