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