Skip to content

Commit

Permalink
x86: Don't send RESCHEDULE_VECTOR to offlined cpus
Browse files Browse the repository at this point in the history
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 <ego@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Gautham R Shenoy authored and Ingo Molnar committed Apr 17, 2008
1 parent 12db648 commit f694010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/x86/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f694010

Please sign in to comment.