Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267092
b: refs/heads/master
c: 081a9d0
h: refs/heads/master
v: v3
  • Loading branch information
Bojan Smojver authored and Rafael J. Wysocki committed Oct 16, 2011
1 parent 77be7f3 commit d5869e1
Show file tree
Hide file tree
Showing 5 changed files with 646 additions and 179 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: d231ff1af70a2df43d809173cf8c94e9c3beb853
refs/heads/master: 081a9d043c983f161b78fdc4671324d1342b86bc
1 change: 1 addition & 0 deletions trunk/kernel/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config HIBERNATION
select HIBERNATE_CALLBACKS
select LZO_COMPRESS
select LZO_DECOMPRESS
select CRC32
---help---
Enable the suspend to disk (STD) functionality, which is usually
called "hibernation" in user interfaces. STD checkpoints the
Expand Down
3 changes: 3 additions & 0 deletions trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,9 @@ int hibernate(void)
flags |= SF_PLATFORM_MODE;
if (nocompress)
flags |= SF_NOCOMPRESS_MODE;
else
flags |= SF_CRC32_MODE;

pr_debug("PM: writing image.\n");
error = swsusp_write(flags);
swsusp_free();
Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/power/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ extern int swsusp_swap_in_use(void);
*/
#define SF_PLATFORM_MODE 1
#define SF_NOCOMPRESS_MODE 2
#define SF_CRC32_MODE 4

/* kernel/power/hibernate.c */
extern int swsusp_check(void);
Expand Down
Loading

0 comments on commit d5869e1

Please sign in to comment.