Subject: [PATCH] reboot when panic_timout is set

From: Olaf Hering <[email-masked]>
Date: Mon, 21 Aug 2006 18:11:32 +0200

Only call into RTAS when booted with panic=0 because the RTAS call does not return.
The system has to be rebooted via the HMC or via the management console right now.
This is cumbersome and not what the default panic=180 is supposed to do.

Signed-off-by: Olaf Hering <[email-masked]>

---
 arch/powerpc/kernel/rtas.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6.18-rc4/arch/powerpc/kernel/rtas.c
===================================================================
--- linux-2.6.18-rc4.orig/arch/powerpc/kernel/rtas.c
+++ linux-2.6.18-rc4/arch/powerpc/kernel/rtas.c
@@ -628,6 +628,9 @@ void rtas_os_term(char *str)
 {
 	int status;
 
+	if (panic_timeout)
+		return;
+
 	if (RTAS_UNKNOWN_SERVICE == rtas_token("ibm,os-term"))
 		return;