kernel_optimize_test/kernel/power
Rafael J. Wysocki a9c9b4429d PM / Hibernate: Fix preallocating of memory
The hibernate memory preallocation code allocates memory to push some
user space data out of physical RAM, so that the hibernation image is
not too large.  It allocates more memory than necessary for creating
the image, so it has to release some pages to make room for
allocations made while suspending devices and disabling nonboot CPUs,
or the system will hang due to the lack of free pages to allocate
from.  Unfortunately, the function used for freeing these pages,
free_unnecessary_pages(), contains a bug that prevents it from doing
the job on all systems without highmem.

Fix this problem, which is a regression from the 2.6.30 kernel, by
using the right condition for the termination of the loop in
free_unnecessary_pages().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-and-tested-by: Alan Jenkins <sourcejedi.lkml@googlemail.com>
Cc: stable@kernel.org
2010-02-26 20:39:13 +01:00
..
console.c vt: introduce and use vt_kmsg_redirect() function 2009-12-15 08:53:28 -08:00
hibernate_nvs.c
hibernate.c PM / Hibernate: Shift remaining code from swsusp.c to hibernate.c 2009-12-06 16:16:07 +01:00
Kconfig PM: Add facility for advanced testing of async suspend/resume 2010-02-26 20:39:10 +01:00
main.c PM: Add a switch for disabling/enabling asynchronous suspend/resume 2010-02-26 20:39:10 +01:00
Makefile PM / Hibernate: Shift remaining code from swsusp.c to hibernate.c 2009-12-06 16:16:07 +01:00
power.h
poweroff.c
process.c
snapshot.c PM / Hibernate: Fix preallocating of memory 2010-02-26 20:39:13 +01:00
suspend_test.c
suspend.c
swap.c PM / Hibernate: Swap, remove useless check from swsusp_read() 2010-02-26 20:39:11 +01:00
user.c PM / Hibernate: Really deprecate deprecated user ioctls 2010-02-26 20:39:11 +01:00