Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245349
b: refs/heads/master
c: 1c1be3a
h: refs/heads/master
i:
  245347: 125f605
v: v3
  • Loading branch information
Rafael J. Wysocki committed May 17, 2011
1 parent 4005c48 commit 62d4c30
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ddeb648708108091a641adad0a438ec4fd8bf190
refs/heads/master: 1c1be3a949a61427a962771c85a347c822aeb991
8 changes: 4 additions & 4 deletions trunk/kernel/power/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ void __init hibernate_reserved_size_init(void)

/*
* Preferred image size in bytes (tunable via /sys/power/image_size).
* When it is set to N, the image creating code will do its best to
* ensure the image size will not exceed N bytes, but if that is
* impossible, it will try to create the smallest image possible.
* When it is set to N, swsusp will do its best to ensure the image
* size will not exceed N bytes, but if that is impossible, it will
* try to create the smallest image possible.
*/
unsigned long image_size;

void __init hibernate_image_size_init(void)
{
image_size = (totalram_pages / 3) * PAGE_SIZE;
image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE;
}

/* List of PBEs needed for restoring the pages that were allocated before
Expand Down

0 comments on commit 62d4c30

Please sign in to comment.