]> git.baikalelectronics.ru Git - kernel.git/commit
PM/Hibernate: Do not release preallocated memory unnecessarily (rev. 2)
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 8 Jul 2009 11:24:05 +0000 (13:24 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Sep 2009 18:26:58 +0000 (20:26 +0200)
commitb7b99b37404a53b6fbd7d1996ceb8fe0e36d9e05
tree173402070f904951c9ec16a55e3f96e75289f14c
parent03dc5e2d46f0feb65cc3862c6c19e96d1cb68f44
PM/Hibernate: Do not release preallocated memory unnecessarily (rev. 2)

Since the hibernation code is now going to use allocations of memory
to make enough room for the image, it can also use the page frames
allocated at this stage as image page frames.  The low-level
hibernation code needs to be rearranged for this purpose, but it
allows us to avoid freeing a great number of pages and allocating
these same pages once again later, so it generally is worth doing.

[rev. 2: Take highmem into account correctly.]

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/hibernate.c
kernel/power/power.h
kernel/power/snapshot.c