Skip to content

Commit

Permalink
sched/x86: Update reschedule warning text
Browse files Browse the repository at this point in the history
Modify the reschedule warning to output the offline CPU number and
use a better debug message.

Signed-off-by: Prarit Bhargava <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Hidehiro Kawai <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt (VMware) <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Wanpeng Li <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Tweaked the warning message. ]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
prarit authored and Ingo Molnar committed Apr 20, 2017
1 parent 73810a0 commit 21173d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static bool smp_no_nmi_ipi = false;
static void native_smp_send_reschedule(int cpu)
{
if (unlikely(cpu_is_offline(cpu))) {
WARN_ON(1);
WARN(1, "sched: Unexpected reschedule of offline CPU#%d!\n", cpu);
return;
}
apic->send_IPI(cpu, RESCHEDULE_VECTOR);
Expand Down

0 comments on commit 21173d0

Please sign in to comment.