diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 8f255259ef9e..0bcaed6560ac 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -392,7 +392,6 @@ void kernel_kexec(void) | |||
392 | } | 392 | } |
393 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); | 393 | notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); |
394 | system_state = SYSTEM_RESTART; | 394 | system_state = SYSTEM_RESTART; |
395 | device_suspend(PMSG_FREEZE); | ||
396 | device_shutdown(); | 395 | device_shutdown(); |
397 | printk(KERN_EMERG "Starting new kernel\n"); | 396 | printk(KERN_EMERG "Starting new kernel\n"); |
398 | machine_shutdown(); | 397 | machine_shutdown(); |
@@ -405,7 +404,6 @@ void kernel_halt(void) | |||
405 | { | 404 | { |
406 | notifier_call_chain(&reboot_notifier_list, SYS_HALT, NULL); | 405 | notifier_call_chain(&reboot_notifier_list, SYS_HALT, NULL); |
407 | system_state = SYSTEM_HALT; | 406 | system_state = SYSTEM_HALT; |
408 | device_suspend(PMSG_SUSPEND); | ||
409 | device_shutdown(); | 407 | device_shutdown(); |
410 | printk(KERN_EMERG "System halted.\n"); | 408 | printk(KERN_EMERG "System halted.\n"); |
411 | machine_halt(); | 409 | machine_halt(); |
@@ -416,7 +414,6 @@ void kernel_power_off(void) | |||
416 | { | 414 | { |
417 | notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF, NULL); | 415 | notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF, NULL); |
418 | system_state = SYSTEM_POWER_OFF; | 416 | system_state = SYSTEM_POWER_OFF; |
419 | device_suspend(PMSG_SUSPEND); | ||
420 | device_shutdown(); | 417 | device_shutdown(); |
421 | printk(KERN_EMERG "Power down.\n"); | 418 | printk(KERN_EMERG "Power down.\n"); |
422 | machine_power_off(); | 419 | machine_power_off(); |