aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2005-07-26 13:49:23 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-26 17:35:43 -0400
commit2f048ea81df94f72dee0d42b3d9b941c03b8c9c5 (patch)
tree1a60d6cc74585629750030c26c05ca471ca39546 /kernel/panic.c
parentff31977782a05504f2586ec9e3e5ab4b09a4c893 (diff)
[PATCH] Call emergency_reboot from panic
We know the system is in trouble so there is no question if this is an emergecy :) Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 74ba5f3e46c7..aabc5f86fa3f 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -111,12 +111,11 @@ NORET_TYPE void panic(const char * fmt, ...)
111 mdelay(1); 111 mdelay(1);
112 i++; 112 i++;
113 } 113 }
114 /* 114 /* This will not be a clean reboot, with everything
115 * Should we run the reboot notifier. For the moment Im 115 * shutting down. But if there is a chance of
116 * choosing not too. It might crash, be corrupt or do 116 * rebooting the system it will be rebooted.
117 * more harm than good for other reasons.
118 */ 117 */
119 machine_restart(NULL); 118 emergency_restart();
120 } 119 }
121#ifdef __sparc__ 120#ifdef __sparc__
122 { 121 {