Skip to content

Commit

Permalink
[PATCH] Call emergency_reboot from panic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ebiederm authored and Linus Torvalds committed Jul 26, 2005
1 parent ff31977 commit 2f048ea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ NORET_TYPE void panic(const char * fmt, ...)
mdelay(1);
i++;
}
/*
* Should we run the reboot notifier. For the moment Im
* choosing not too. It might crash, be corrupt or do
* more harm than good for other reasons.
/* This will not be a clean reboot, with everything
* shutting down. But if there is a chance of
* rebooting the system it will be rebooted.
*/
machine_restart(NULL);
emergency_restart();
}
#ifdef __sparc__
{
Expand Down

0 comments on commit 2f048ea

Please sign in to comment.