]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Add missing device_suspsend(PMSG_FREEZE) calls.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Jul 2005 17:21:38 +0000 (11:21 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:35:41 +0000 (14:35 -0700)
In the recent addition of device_suspend calls into
sys_reboot two code paths were missed.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sys.c

index 9a24374c23bc4f69116d264991689b1aaa9c38fe..5fc10d3e3891a41b65e65e4a1b636db77313cd32 100644 (file)
@@ -391,6 +391,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user
        case LINUX_REBOOT_CMD_RESTART:
                notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL);
                system_state = SYSTEM_RESTART;
+               device_suspend(PMSG_FREEZE);
                device_shutdown();
                printk(KERN_EMERG "Restarting system.\n");
                machine_restart(NULL);
@@ -452,6 +453,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user
                }
                notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL);
                system_state = SYSTEM_RESTART;
+               device_suspend(PMSG_FREEZE);
                device_shutdown();
                printk(KERN_EMERG "Starting new kernel\n");
                machine_shutdown();