From: Gautham R Shenoy Date: Mon, 10 Mar 2008 12:14:03 +0000 (+0530) Subject: x86: Don't send RESCHEDULE_VECTOR to offlined cpus X-Git-Tag: v2.6.26-rc1~1154^2~419 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f694010185c429629ad5a65245da08103e611852;p=linux-2.6-omap-h63xx.git x86: Don't send RESCHEDULE_VECTOR to offlined cpus In the x86 native_smp_send_reschedule_function(), don't send the IPI if the cpu has gone offline already. Warn nevertheless!! Signed-off-by: Gautham R Shenoy Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c index 88c1e518a20..16c52aaaca3 100644 --- a/arch/x86/kernel/smp.c +++ b/arch/x86/kernel/smp.c @@ -118,7 +118,10 @@ */ static void native_smp_send_reschedule(int cpu) { - WARN_ON(cpu_is_offline(cpu)); + if (unlikely(cpu_is_offline(cpu))) { + WARN_ON(1); + return; + } send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR); }