linux/kernel/power
Rafael J. Wysocki e5e2fa7857 [PATCH] swsusp: fix enough_free_mem
This patch fixes a problem with the function enough_free_mem() used by
swsusp to verify if there is a sufficient number of memory pages available
to it to create and save the suspend image.

Namely, enough_free_mem() uses nr_free_pages() to obtain the number of free
memory pages, which is incorrect, because this function returns the total
number of free pages, including free highmem pages, and the highmem pages
cannot be used by swsusp for storing the image data.

The patch makes enough_free_mem() avoid counting the free highmem
pages as available to swsusp.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-06 08:33:40 -08:00
..
Kconfig [PATCH] move pm_register/etc. to CONFIG_PM_LEGACY, pm_legacy.h 2005-11-13 18:14:10 -08:00
Makefile [PATCH] move pm_register/etc. to CONFIG_PM_LEGACY, pm_legacy.h 2005-11-13 18:14:10 -08:00
console.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
disk.c [PATCH] swsusp: improve freeing of memory 2006-01-06 08:33:40 -08:00
main.c [PATCH] fix swsusp on machines not supporting S4 2005-11-29 19:47:03 -08:00
pm.c [PATCH] move pm_register/etc. to CONFIG_PM_LEGACY, pm_legacy.h 2005-11-13 18:14:10 -08:00
power.h [PATCH] swsusp: improve freeing of memory 2006-01-06 08:33:40 -08:00
poweroff.c [PATCH] Use kernel_power_off in sysrq-o 2005-07-26 14:35:43 -07:00
process.c [PATCH] pm: fix process freezing 2005-09-05 00:06:17 -07:00
smp.c [PATCH] Address BUG: using smp_processor_id() in preemptible [00000001] code 2005-07-27 16:25:50 -07:00
snapshot.c [PATCH] swsusp: fix enough_free_mem 2006-01-06 08:33:40 -08:00
swsusp.c [PATCH] swsusp: improve freeing of memory 2006-01-06 08:33:40 -08:00