From: Srivatsa S. Bhat Date: Thu, 22 May 2014 00:44:05 +0000 (+1000) Subject: smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-v5 X-Git-Tag: next-20140530~2^2~62 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ddb7fec09b32ec61e428e7e882b6821a10d3df3f;p=karo-tx-linux.git smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-v5 Signed-off-by: Srivatsa S. Bhat Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Tejun Heo Cc: Rusty Russell Cc: Frederic Weisbecker Cc: Christoph Hellwig Cc: Mel Gorman Cc: Rik van Riel Cc: Borislav Petkov Cc: Steven Rostedt Cc: Mike Galbraith Cc: Gautham R Shenoy Cc: "Paul E. McKenney" Cc: Oleg Nesterov Cc: Rafael J. Wysocki Signed-off-by: Andrew Morton --- diff --git a/kernel/smp.c b/kernel/smp.c index f864921fc82c..306f8180b0d5 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -195,13 +195,15 @@ void generic_smp_call_function_single_interrupt(void) */ if (unlikely(!cpu_online(smp_processor_id()) && !warned)) { warned = true; - WARN_ON(1); + WARN(1, "IPI on offline CPU %d\n", smp_processor_id()); + /* * We don't have to use the _safe() variant here * because we are not invoking the IPI handlers yet. */ llist_for_each_entry(csd, entry, llist) - pr_warn("SMP IPI Payload: %pS \n", csd->func); + pr_warn("IPI callback %pS sent to offline CPU\n", + csd->func); } llist_for_each_entry_safe(csd, csd_next, entry, llist) {