Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Eric W. Biederman and committed by
Linus Torvalds
abcd9e51 4a00ea1e

+1 -2
+1 -2
kernel/sys.c
··· 502 502 503 503 static void deferred_cad(void *dummy) 504 504 { 505 - notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); 506 - machine_restart(NULL); 505 + kernel_restart(NULL); 507 506 } 508 507 509 508 /*