diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 9a24374c23bc..5fc10d3e3891 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -391,6 +391,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user | |||
391 | case LINUX_REBOOT_CMD_RESTART: | 391 | case LINUX_REBOOT_CMD_RESTART: |
392 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); | 392 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); |
393 | system_state = SYSTEM_RESTART; | 393 | system_state = SYSTEM_RESTART; |
394 | device_suspend(PMSG_FREEZE); | ||
394 | device_shutdown(); | 395 | device_shutdown(); |
395 | printk(KERN_EMERG "Restarting system.\n"); | 396 | printk(KERN_EMERG "Restarting system.\n"); |
396 | machine_restart(NULL); | 397 | machine_restart(NULL); |
@@ -452,6 +453,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user | |||
452 | } | 453 | } |
453 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); | 454 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); |
454 | system_state = SYSTEM_RESTART; | 455 | system_state = SYSTEM_RESTART; |
456 | device_suspend(PMSG_FREEZE); | ||
455 | device_shutdown(); | 457 | device_shutdown(); |
456 | printk(KERN_EMERG "Starting new kernel\n"); | 458 | printk(KERN_EMERG "Starting new kernel\n"); |
457 | machine_shutdown(); | 459 | machine_shutdown(); |