Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291849
b: refs/heads/master
c: 51d6ff7
h: refs/heads/master
i:
  291847: 04e0145
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Feb 9, 2012
1 parent fcd6fc6 commit 1eb4775
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 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: 9045a05044268b075c13bb0284601b24959dc3c6
refs/heads/master: 51d6ff7acd920379f54d0be4dbe844a46178a65f
6 changes: 4 additions & 2 deletions trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ int hibernation_snapshot(int platform_mode)
* successful freezer test.
*/
freezer_test_done = true;
goto Cleanup;
goto Thaw;
}

error = dpm_prepare(PMSG_FREEZE);
if (error) {
dpm_complete(PMSG_RECOVER);
goto Cleanup;
goto Thaw;
}

suspend_console();
Expand Down Expand Up @@ -385,6 +385,8 @@ int hibernation_snapshot(int platform_mode)
platform_end(platform_mode);
return error;

Thaw:
thaw_kernel_threads();
Cleanup:
swsusp_free();
goto Close;
Expand Down
8 changes: 2 additions & 6 deletions trunk/kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,12 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
}
pm_restore_gfp_mask();
error = hibernation_snapshot(data->platform_support);
if (error) {
thaw_kernel_threads();
} else {
if (!error) {
error = put_user(in_suspend, (int __user *)arg);
if (!error && !freezer_test_done)
data->ready = 1;
if (freezer_test_done) {
if (freezer_test_done)
freezer_test_done = false;
thaw_kernel_threads();
}
}
break;

Expand Down

0 comments on commit 1eb4775

Please sign in to comment.