]> err.no Git - linux-2.6/commitdiff
[PATCH] Make ctrl_alt_del call kernel_restart to get a proper reboot.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Jul 2005 17:27:34 +0000 (11:27 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:35:41 +0000 (14:35 -0700)
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>
kernel/sys.c

index 7e033809ef5fdd5406803bb7f6abf5bbdbaf8a75..31ac41a733298bd68e1385c91300bdd7510dea65 100644 (file)
@@ -502,8 +502,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user
 
 static void deferred_cad(void *dummy)
 {
-       notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL);
-       machine_restart(NULL);
+       kernel_restart(NULL);
 }
 
 /*