genirq: consolidate nr_irqs and for_each_irq_desc()
Move all of those to linux/irq.h where they belong. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Ingo Molnar
parent
3235e936c0
commit
70dd4d992a
@@ -15,15 +15,6 @@
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/system.h>
|
||||
|
||||
#ifndef CONFIG_GENERIC_HARDIRQS
|
||||
# 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
|
||||
|
||||
/*
|
||||
* These correspond to the IORESOURCE_IRQ_* defines in
|
||||
* linux/ioport.h to select the interrupt line behaviour. When
|
||||
|
Reference in New Issue
Block a user