From: Rafael J. Wysocki Date: Wed, 8 Jul 2009 11:23:51 +0000 (+0200) Subject: PM/Hibernate: Rework shrinking of memory X-Git-Tag: v2.6.32-rc1~684^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb334353ebd821bc8eeabeb019eaac33c7307df;p=pandora-kernel.git PM/Hibernate: Rework shrinking of memory Rework swsusp_shrink_memory() so that it calls shrink_all_memory() just once to make some room for the image and then allocates memory to apply more pressure to the memory management subsystem, if necessary. Unfortunately, we don't seem to be able to drop shrink_all_memory() entirely just yet, because that would lead to huge performance regressions in some test cases. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek --- Reading git-diff-tree failed