Commit 8599d0a2 authored by Stefan Seyfried's avatar Stefan Seyfried Committed by Linus Torvalds

[PATCH] Subject: swsusp: do not provoke emergency disk shutdowns

In platform swsusp mode, we were forgetting to spin disks down, leading to
ugly emergency shutdown.  This synchronizes platform method with other
methods and actually helps.
Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1026f161
......@@ -53,7 +53,7 @@ static void power_down(suspend_disk_method_t mode)
local_irq_save(flags);
switch(mode) {
case PM_DISK_PLATFORM:
device_power_down(PMSG_SUSPEND);
device_shutdown();
error = pm_ops->enter(PM_SUSPEND_DISK);
break;
case PM_DISK_SHUTDOWN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment