Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82397
b: refs/heads/master
c: af258f5
h: refs/heads/master
i:
  82395: 6607fa7
v: v3
  • Loading branch information
Johannes Berg authored and Len Brown committed Feb 1, 2008
1 parent 2344a8c commit 7c86821
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 17b7a89cfb6ea2ff103785f9b2580e5138b6cfd1
refs/heads/master: af258f516b3e4e214121f5d6d53cab32ce0d8010
8 changes: 4 additions & 4 deletions trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ static int suspend_prepare(void)
if (!suspend_ops || !suspend_ops->enter)
return -EPERM;

pm_prepare_console();

error = pm_notifier_call_chain(PM_SUSPEND_PREPARE);
if (error)
goto Finish;

pm_prepare_console();

if (suspend_freeze_processes()) {
error = -EAGAIN;
goto Thaw;
Expand All @@ -200,9 +200,9 @@ static int suspend_prepare(void)

Thaw:
suspend_thaw_processes();
pm_restore_console();
Finish:
pm_notifier_call_chain(PM_POST_SUSPEND);
pm_restore_console();
return error;
}

Expand Down Expand Up @@ -309,8 +309,8 @@ int suspend_devices_and_enter(suspend_state_t state)
static void suspend_finish(void)
{
suspend_thaw_processes();
pm_restore_console();
pm_notifier_call_chain(PM_POST_SUSPEND);
pm_restore_console();
}


Expand Down

0 comments on commit 7c86821

Please sign in to comment.