commit | 6dbecfd345a617888da370b13d5b190c9ff3df53 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jun 29 03:02:16 2016 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Jul 02 01:52:09 2016 +0200 |
tree | 65fdd1cdec7c217d5b2ff8fe591624110bd03c51 | |
parent | 9c744481c003697de453e8fc039468143ba604aa [diff] |
PM / hibernate: Simplify mark_unsafe_pages() Rework mark_unsafe_pages() to use a simpler method of clearing all bits in free_pages_map and to set the bits for the "unsafe" pages (ie. pages that were used by the image kernel before hibernation) with the help of duplicate_memory_bitmap(). For this purpose, move the pfn_valid() check from mark_unsafe_pages() to unpack_orig_pfns() where the "unsafe" pages are discovered. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>