Skip to content

Commit

Permalink
Revert "PM / Hibernate: Reduce autotuned default image size"
Browse files Browse the repository at this point in the history
This reverts commit bea3864
(PM / Hibernate: Reduce autotuned default image size), because users
are now able to resolve the issue this commit was supposed to address
in a different way (i.e. by using the new /sys/power/reserved_size
interface).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
rjwysocki committed May 17, 2011
1 parent ddeb648 commit 1c1be3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 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 1c1be3a

Please sign in to comment.