diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 13:27:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 17:35:41 -0400 |
commit | abcd9e51f5b832439b119d530db1353c12fd4073 (patch) | |
tree | 27ea8acee7a35021e399cafb80f4a4a57a1688e4 | |
parent | 4a00ea1e18228e5ef99d4780671fda97226bda30 (diff) |
[PATCH] Make ctrl_alt_del call kernel_restart to get a proper reboot.
It is obvious we wanted to call kernel_restart here
but since we don't have it the code was expanded inline and hasn't
been correct since sometime in 2.4.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 7e033809ef5f..31ac41a73329 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -502,8 +502,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user | |||
502 | 502 | ||
503 | static void deferred_cad(void *dummy) | 503 | static void deferred_cad(void *dummy) |
504 | { | 504 | { |
505 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); | 505 | kernel_restart(NULL); |
506 | machine_restart(NULL); | ||
507 | } | 506 | } |
508 | 507 | ||
509 | /* | 508 | /* |