aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/smp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
index 88c1e518a203..16c52aaaca35 100644
--- a/arch/x86/kernel/smp.c
+++ b/arch/x86/kernel/smp.c
@@ -118,7 +118,10 @@
118 */ 118 */
119static void native_smp_send_reschedule(int cpu) 119static void native_smp_send_reschedule(int cpu)
120{ 120{
121 WARN_ON(cpu_is_offline(cpu)); 121 if (unlikely(cpu_is_offline(cpu))) {
122 WARN_ON(1);
123 return;
124 }
122 send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR); 125 send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR);
123} 126}
124 127