diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-02-08 16:18:03 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 09:21:28 +0100 |
commit | abcaa2b8319a7673e76c2391cb5de3045ab1b401 (patch) | |
tree | 9f10c10439bff92787aac5f29c6fc97e5f67b2f0 /arch/x86/include/asm/hw_irq.h | |
parent | f1ee5548a6507d2b4293635c61ddbf12e2c00e94 (diff) | |
download | linux-abcaa2b8319a7673e76c2391cb5de3045ab1b401.tar.gz linux-abcaa2b8319a7673e76c2391cb5de3045ab1b401.tar.bz2 linux-abcaa2b8319a7673e76c2391cb5de3045ab1b401.zip |
x86: use NR_IRQS_LEGACY to replace 16
Impact: cleanup
also could kill platform_legacy_irq
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/hw_irq.h')
-rw-r--r-- | arch/x86/include/asm/hw_irq.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index 1a20e3d12006..1b82781b898d 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -25,8 +25,6 @@ #include <asm/irq.h> #include <asm/sections.h> -#define platform_legacy_irq(irq) ((irq) < 16) - /* Interrupt handlers registered during init_IRQ */ extern void apic_timer_interrupt(void); extern void error_interrupt(void); @@ -58,7 +56,7 @@ extern void make_8259A_irq(unsigned int irq); extern void init_8259A(int aeoi); /* IOAPIC */ -#define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs)) +#define IO_APIC_IRQ(x) (((x) >= NR_IRQS_LEGACY) || ((1<<(x)) & io_apic_irqs)) extern unsigned long io_apic_irqs; extern void init_VISWS_APIC_irqs(void); |