aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqinit_32.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-04-09 04:52:23 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-10 08:35:55 -0400
commitb0096bb0b640d0a7713618b3472fd0f4adf30a96 (patch)
tree3c2d1114307e8ad63bc5a4831b993bda7326492f /arch/x86/kernel/irqinit_32.c
parentd3496c85cae22fb7713af6ed542a6aeae8ee4210 (diff)
x86: unify smp_intr_init() in irqinit_{32,64}.h
Impact: cleanup 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_32.c')
-rw-r--r--arch/x86/kernel/irqinit_32.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c
index 1029a1855f98..ef2528d298b6 100644
--- a/arch/x86/kernel/irqinit_32.c
+++ b/arch/x86/kernel/irqinit_32.c
@@ -123,7 +123,8 @@ void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
123 123
124static void __init smp_intr_init(void) 124static void __init smp_intr_init(void)
125{ 125{
126#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_SMP) 126#ifdef CONFIG_SMP
127#if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
127 /* 128 /*
128 * The reschedule interrupt is a CPU-to-CPU reschedule-helper 129 * The reschedule interrupt is a CPU-to-CPU reschedule-helper
129 * IPI, driven by wakeup. 130 * IPI, driven by wakeup.
@@ -143,14 +144,15 @@ static void __init smp_intr_init(void)
143 /* IPI for generic function call */ 144 /* IPI for generic function call */
144 alloc_intr_gate(CALL_FUNCTION_VECTOR, call_function_interrupt); 145 alloc_intr_gate(CALL_FUNCTION_VECTOR, call_function_interrupt);
145 146
146 /* IPI for single call function */ 147 /* IPI for generic single function call */
147 alloc_intr_gate(CALL_FUNCTION_SINGLE_VECTOR, 148 alloc_intr_gate(CALL_FUNCTION_SINGLE_VECTOR,
148 call_function_single_interrupt); 149 call_function_single_interrupt);
149 150
150 /* Low priority IPI to cleanup after moving an irq */ 151 /* Low priority IPI to cleanup after moving an irq */
151 set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt); 152 set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt);
152 set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); 153 set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors);
153#endif 154#endif
155#endif /* CONFIG_SMP */
154} 156}
155 157
156/** 158/**