From: Eric W. Biederman Date: Tue, 26 Jul 2005 17:27:34 +0000 (-0600) Subject: [PATCH] Make ctrl_alt_del call kernel_restart to get a proper reboot. X-Git-Tag: v2.6.13-rc4~61 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abcd9e51f5b832439b119d530db1353c12fd4073;p=linux-2.6 [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 Signed-off-by: Linus Torvalds --- diff --git a/kernel/sys.c b/kernel/sys.c index 7e033809ef..31ac41a733 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 static void deferred_cad(void *dummy) { - notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); - machine_restart(NULL); + kernel_restart(NULL); } /*