PM / hibernate: exclude freed pages from allocated pages printout
authorWonhong Kwon <wonhongkwon@gmail.com>
Tue, 3 Feb 2015 08:22:00 +0000 (17:22 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:53:53 +0000 (22:53 +0100)
commita64fc82c4f1598db024de7b3d79e7213379769ff
tree80eb900e1737770f4245e181fe8bcd5164a4f075
parentc9257f78b4f785d200737d60453fff51b57a2356
PM / hibernate: exclude freed pages from allocated pages printout

hibernate_preallocate_memory() prints out that how many pages are
allocated, but it doesn't take into consideration the pages freed by
free_unnecessary_pages(). Therefore, it always shows the count more
than actually allocated.

Signed-off-by: Wonhong Kwon <wonhong.kwon@lge.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/snapshot.c