All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] conditionalize call from panic() to smp_send_stop()
@ 2009-01-14 12:25 Jan Beulich
  2009-01-15  3:34 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2009-01-14 12:25 UTC (permalink / raw)
  To: linux-kernel

... avoiding nested warnings and/or oopses as much as possible (namely
durin early boot).

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 kernel/panic.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.29-rc1/kernel/panic.c	2009-01-14 11:36:29.000000000 +0100
+++ 2.6.29-rc1-panic-conditional-stop/kernel/panic.c	2009-01-06 17:02:49.000000000 +0100
@@ -89,7 +89,8 @@ NORET_TYPE void panic(const char * fmt, 
 	 * unfortunately means it may not be hardened to work in a panic
 	 * situation.
 	 */
-	smp_send_stop();
+	if (num_online_cpus() > 1)
+		smp_send_stop();
 #endif
 
 	atomic_notifier_call_chain(&panic_notifier_list, 0, buf);




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-15  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 12:25 [PATCH] conditionalize call from panic() to smp_send_stop() Jan Beulich
2009-01-15  3:34 ` Andi Kleen
2009-01-15  9:16   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.