Skip to content
  • Rafael J. Wysocki's avatar
    PM/Hibernate: Do not release preallocated memory unnecessarily (rev. 2) · 64a473cb
    Rafael J. Wysocki authored
    
    
    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: default avatarRafael J. Wysocki <rjw@sisk.pl>
    64a473cb