Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56468
b: refs/heads/master
c: 52ade9b
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed May 16, 2007
1 parent 40c4e07 commit 18c5998
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b104bcb8e460e45a1aebe3da9b86aacdb4cab12
refs/heads/master: 52ade9b3b97fd3bea42842a056fe0786c28d0555
15 changes: 8 additions & 7 deletions trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,26 @@ static int suspend_prepare(suspend_state_t state)
}
}

if (pm_ops->prepare) {
if ((error = pm_ops->prepare(state)))
goto Thaw;
}

suspend_console();
error = device_suspend(PMSG_SUSPEND);
if (error) {
printk(KERN_ERR "Some devices failed to suspend\n");
goto Resume_devices;
goto Resume_console;
}
if (pm_ops->prepare) {
if ((error = pm_ops->prepare(state)))
goto Resume_devices;
}

error = disable_nonboot_cpus();
if (!error)
return 0;

enable_nonboot_cpus();
Resume_devices:
pm_finish(state);
Resume_devices:
device_resume();
Resume_console:
resume_console();
Thaw:
thaw_processes();
Expand Down

0 comments on commit 18c5998

Please sign in to comment.