mirror of https://gitee.com/openkylin/linux.git
[PATCH] Avoid device suspend on reboot
My fairly ordinary x86 test box gets stuck during reboot on the wait_for_completion() in ide_do_drive_cmd(): Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
49302d0c42
commit
e4ff4d7f9d
|
@ -371,7 +371,6 @@ void kernel_restart(char *cmd)
|
|||
{
|
||||
notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
||||
system_state = SYSTEM_RESTART;
|
||||
device_suspend(PMSG_FREEZE);
|
||||
device_shutdown();
|
||||
if (!cmd) {
|
||||
printk(KERN_EMERG "Restarting system.\n");
|
||||
|
|
Loading…
Reference in New Issue