aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorBojan Smojver <bojan@rexursive.com>2012-04-24 23:53:28 +0200
committerBen Hutchings <ben@decadent.org.uk>2012-05-11 13:14:48 +0100
commite0791b5ffb456aa7de29391297e5dc93c1d123ff (patch)
tree3fe552e43669d9af6f66b0d3685462d41385e4d6 /scripts/patch-kernel
parentbb1e005ee88b73be502eb42ca6bdb4c7295b7b3c (diff)
PM / Hibernate: fix the number of pages used for hibernate/thaw buffering
commit f8262d476823a7ea1eb497ff9676d1eab2393c75 upstream. Hibernation regression fix, since 3.2. Calculate the number of required free pages based on non-high memory pages only, because that is where the buffers will come from. Commit 081a9d043c983f161b78fdc4671324d1342b86bc introduced a new buffer page allocation logic during hibernation, in order to improve the performance. The amount of pages allocated was calculated based on total amount of pages available, although only non-high memory pages are usable for this purpose. This caused hibernation code to attempt to over allocate pages on platforms that have high memory, which led to hangs. Signed-off-by: Bojan Smojver <bojan@rexursive.com> Signed-off-by: Rafael J. Wysocki <rjw@suse.de> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions