• Rafael J. Wysocki's avatar
    PM / hibernate: Simplify mark_unsafe_pages() · 6dbecfd3
    Rafael J. Wysocki authored
    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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    6dbecfd3
snapshot.c 67 KB