]> git.baikalelectronics.ru Git - kernel.git/commit
PM/Hibernate: Rework shrinking of memory
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 8 Jul 2009 11:23:51 +0000 (13:23 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Sep 2009 18:26:58 +0000 (20:26 +0200)
commit03dc5e2d46f0feb65cc3862c6c19e96d1cb68f44
treefc827906f10eebaed4c0483b25beaaba70b0b1dc
parent188b157b98542cb0cf9f7bbada45fb785cc663b7
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 <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
kernel/power/snapshot.c