summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/hw_irq.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2009-02-09 01:18:03 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-09 09:21:28 +0100
commitabcaa2b8319a7673e76c2391cb5de3045ab1b401 (patch)
tree9f10c10439bff92787aac5f29c6fc97e5f67b2f0 /arch/x86/include/asm/hw_irq.h
parentx86/irq: optimize nr_irqs (diff)
downloadlinux-abcaa2b8319a7673e76c2391cb5de3045ab1b401.tar.xz
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.h4
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);