diff options
-rw-r--r-- | arch/x86/kernel/irqinit_32.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/irqinit_64.c | 2 |
2 files changed, 7 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 | ||
124 | static void __init smp_intr_init(void) | 124 | static 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 | /** |
diff --git a/arch/x86/kernel/irqinit_64.c b/arch/x86/kernel/irqinit_64.c index 1c8858bb27f2..9e7c57dc79e6 100644 --- a/arch/x86/kernel/irqinit_64.c +++ b/arch/x86/kernel/irqinit_64.c | |||
@@ -107,6 +107,7 @@ void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ"))); | |||
107 | static void __init smp_intr_init(void) | 107 | static void __init smp_intr_init(void) |
108 | { | 108 | { |
109 | #ifdef CONFIG_SMP | 109 | #ifdef CONFIG_SMP |
110 | #if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC) | ||
110 | /* | 111 | /* |
111 | * The reschedule interrupt is a CPU-to-CPU reschedule-helper | 112 | * The reschedule interrupt is a CPU-to-CPU reschedule-helper |
112 | * IPI, driven by wakeup. | 113 | * IPI, driven by wakeup. |
@@ -134,6 +135,7 @@ static void __init smp_intr_init(void) | |||
134 | set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt); | 135 | set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt); |
135 | set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); | 136 | set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); |
136 | #endif | 137 | #endif |
138 | #endif /* CONFIG_SMP */ | ||
137 | } | 139 | } |
138 | 140 | ||
139 | static void __init apic_intr_init(void) | 141 | static void __init apic_intr_init(void) |