Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291850
b: refs/heads/master
c: a556d5b
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Feb 9, 2012
1 parent 1eb4775 commit 9f93319
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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: 51d6ff7acd920379f54d0be4dbe844a46178a65f
refs/heads/master: a556d5b58345ccf51826b9ceac078072f830738b
10 changes: 5 additions & 5 deletions trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,8 @@ int hibernate(void)
goto Finish;

error = hibernation_snapshot(hibernation_mode == HIBERNATION_PLATFORM);
if (error)
goto Thaw;
if (freezer_test_done) {
freezer_test_done = false;
if (error || freezer_test_done)
goto Thaw;
}

if (in_suspend) {
unsigned int flags = 0;
Expand All @@ -659,6 +655,10 @@ int hibernate(void)

Thaw:
thaw_processes();

/* Don't bother checking whether freezer_test_done is true */
freezer_test_done = false;

Finish:
free_basic_memory_bitmaps();
usermodehelper_enable();
Expand Down
6 changes: 2 additions & 4 deletions trunk/kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,8 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
error = hibernation_snapshot(data->platform_support);
if (!error) {
error = put_user(in_suspend, (int __user *)arg);
if (!error && !freezer_test_done)
data->ready = 1;
if (freezer_test_done)
freezer_test_done = false;
data->ready = !freezer_test_done && !error;
freezer_test_done = false;
}
break;

Expand Down

0 comments on commit 9f93319

Please sign in to comment.