提交 2f048ea8 编写于 作者: E Eric W. Biederman 提交者: Linus Torvalds

[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: NEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ff319777
...@@ -111,12 +111,11 @@ NORET_TYPE void panic(const char * fmt, ...) ...@@ -111,12 +111,11 @@ NORET_TYPE void panic(const char * fmt, ...)
mdelay(1); mdelay(1);
i++; i++;
} }
/* /* This will not be a clean reboot, with everything
* Should we run the reboot notifier. For the moment Im * shutting down. But if there is a chance of
* choosing not too. It might crash, be corrupt or do * rebooting the system it will be rebooted.
* more harm than good for other reasons.
*/ */
machine_restart(NULL); emergency_restart();
} }
#ifdef __sparc__ #ifdef __sparc__
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册