aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqinit.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-04-09 04:52:29 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-10 08:35:58 -0400
commitac3048dfd4740becf8d768844cf47ebee363c9f8 (patch)
treed0bbddc6054967439d66bd7fcd8e0603f4f65d59 /arch/x86/kernel/irqinit.c
parent31cb45ef2600d47191d51253ec94b5e3f689260d (diff)
x86: define IA32_SYSCALL_VECTOR on 32-bit to reduce ifdefs
Impact: cleanup We can remove some #ifdefs if we define IA32_SYSCALL_VECTOR on 32-bit. Reviewed-by Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/irqinit.c')
-rw-r--r--arch/x86/kernel/irqinit.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c
index f3be5e974275..f2c60a59f474 100644
--- a/arch/x86/kernel/irqinit.c
+++ b/arch/x86/kernel/irqinit.c
@@ -242,15 +242,9 @@ void __init native_init_IRQ(void)
242 * 'special' SMP interrupts) 242 * 'special' SMP interrupts)
243 */ 243 */
244 for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) { 244 for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
245#ifdef CONFIG_X86_32
246 /* SYSCALL_VECTOR was reserved in trap_init. */
247 if (i != SYSCALL_VECTOR)
248 set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]);
249#else
250 /* IA32_SYSCALL_VECTOR was reserved in trap_init. */ 245 /* IA32_SYSCALL_VECTOR was reserved in trap_init. */
251 if (i != IA32_SYSCALL_VECTOR) 246 if (i != IA32_SYSCALL_VECTOR)
252 set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]); 247 set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]);
253#endif
254 } 248 }
255 249
256 apic_intr_init(); 250 apic_intr_init();