Commit fa7f8704 authored by Patrick Mochel's avatar Patrick Mochel Committed by Patrick Mochel

[swsusp] Make sure software_suspend() takes right path

- Make sure it calls enter_state(), which does the proper locking and check
  for SMP, etc.
parent dc7bd03b
......@@ -173,13 +173,7 @@ static int enter_state(u32 state)
*/
int software_suspend(void)
{
int error;
if (down_trylock(&pm_sem))
return -EBUSY;
error = pm_suspend_disk();
up(&pm_sem);
return error;
return enter_state(PM_SUSPEND_DISK);
}
......
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