genirq: define nr_irqs for architectures with GENERIC_HARDIRQS=n
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>
This commit is contained in:
committed by
Ingo Molnar
parent
81608f3c25
commit
7ef0c30dbf
@ -15,11 +15,13 @@
|
||||
#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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user