diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-29 03:02:16 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-02 01:52:09 +0200 |
commit | 6dbecfd345a617888da370b13d5b190c9ff3df53 (patch) | |
tree | 65fdd1cdec7c217d5b2ff8fe591624110bd03c51 /arch/sparc | |
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>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions