]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] reboot when panic_timout is set
authorOlaf Hering <olaf@aepfle.de>
Mon, 21 Aug 2006 16:11:32 +0000 (18:11 +0200)
committerPaul Mackerras <paulus@samba.org>
Fri, 25 Aug 2006 03:30:26 +0000 (13:30 +1000)
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 <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas.c

index 6b0699b82b41a3f01259aef4350d4a91a1730d98..6ef80d4e38d3c08cdfe9e18aa0dd4634b43fe76a 100644 (file)
@@ -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;