Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280358
b: refs/heads/master
c: 97819a2
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Dec 6, 2011
1 parent 84f9736 commit e62fbe8
Show file tree
Hide file tree
Showing 4 changed files with 12 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: 0118521cc7acb3ccbc1a01d6144ac32be9d56a4c
refs/heads/master: 97819a26224f019e73d88bb2fd4eb5a614860461
2 changes: 1 addition & 1 deletion trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum {

static int hibernation_mode = HIBERNATION_SHUTDOWN;

static bool freezer_test_done;
bool freezer_test_done;

static const struct platform_hibernation_ops *hibernation_ops;

Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/power/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ static inline char *check_image_kernel(struct swsusp_info *info)
#define SPARE_PAGES ((1024 * 1024) >> PAGE_SHIFT)

/* kernel/power/hibernate.c */
extern bool freezer_test_done;

extern int hibernation_snapshot(int platform_mode);
extern int hibernation_restore(int platform_mode);
extern int hibernation_platform_enter(void);
Expand Down
11 changes: 8 additions & 3 deletions trunk/kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,15 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
}
pm_restore_gfp_mask();
error = hibernation_snapshot(data->platform_support);
if (!error)
if (!error) {
error = put_user(in_suspend, (int __user *)arg);
if (!error)
data->ready = 1;
if (!error && !freezer_test_done)
data->ready = 1;
if (freezer_test_done) {
freezer_test_done = false;
thaw_processes();
}
}
break;

case SNAPSHOT_ATOMIC_RESTORE:
Expand Down

0 comments on commit e62fbe8

Please sign in to comment.