X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/a16260b824197a0f19ad9f2443d226d2c03d37e0..4f8bca6642175fb93e3830028e31519f50f8323f:/sys.c diff --git a/sys.c b/sys.c index 611276b..e631609 100644 --- a/sys.c +++ b/sys.c @@ -46,6 +46,7 @@ extern asmlinkage long (*original_reboot)(int magic1, int magic2, unsigned int cmd, void __user *arg); +#if 0 static struct notifier_block dummy_notifier_reboot = { .notifier_call = NULL, .next = NULL, @@ -53,18 +54,23 @@ static struct notifier_block dummy_notifier_reboot = { }; BLOCKING_NOTIFIER_HEAD(notifier_head); +#endif void kernel_restart_prepare(char *cmd) { + void (*original_kernel_restart_prepare)(char *) = (void (*)(char *))KERNEL_RESTART_PREPARE; + return original_kernel_restart_prepare(cmd); +#if 0 register_reboot_notifier(&dummy_notifier_reboot); notifier_head.head=dummy_notifier_reboot.next; unregister_reboot_notifier(&dummy_notifier_reboot); blocking_notifier_call_chain(¬ifier_head, SYS_RESTART, cmd); system_state = SYSTEM_RESTART; -// device_shutdown(); -// sysdev_shutdown(); + //device_shutdown(); + //sysdev_shutdown(); +#endif } /*