Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291862
b: refs/heads/master
c: 05b4877
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Mar 4, 2012
1 parent 37c086f commit 723da42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 4782e1654bdbd30cf307da090b3c4f70157477cb
refs/heads/master: 05b4877f6a4f1ba4952d1222213d262bf8c132b7
7 changes: 4 additions & 3 deletions trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,15 @@ int hibernate(void)
/* Allocate memory management structures */
error = create_basic_memory_bitmaps();
if (error)
goto Exit;
goto Enable_umh;

printk(KERN_INFO "PM: Syncing filesystems ... ");
sys_sync();
printk("done.\n");

error = freeze_processes();
if (error)
goto Finish;
goto Free_bitmaps;

error = hibernation_snapshot(hibernation_mode == HIBERNATION_PLATFORM);
if (error || freezer_test_done)
Expand Down Expand Up @@ -659,8 +659,9 @@ int hibernate(void)
/* Don't bother checking whether freezer_test_done is true */
freezer_test_done = false;

Finish:
Free_bitmaps:
free_basic_memory_bitmaps();
Enable_umh:
usermodehelper_enable();
Exit:
pm_notifier_call_chain(PM_POST_HIBERNATION);
Expand Down

0 comments on commit 723da42

Please sign in to comment.