• Rafael J. Wysocki's avatar
    PM / hibernate: Fix user space driven resume regression · aab17289
    Rafael J. Wysocki authored
    Recent commit 8fd37a4c (PM / hibernate: Create memory bitmaps after
    freezing user space) broke the resume part of the user space driven
    hibernation (s2disk), because I forgot that the resume utility
    loaded the image into memory without freezing user space (it still
    freezes tasks after loading the image).  This means that during user
    space driven resume we need to create the memory bitmaps at the
    "device open" time rather than at the "freeze tasks" time, so make
    that happen (that's a special case anyway, so it needs to be treated
    in a special way).
    Reported-and-tested-by: default avatarRonald <ronald645@gmail.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    aab17289
user.c 9.88 KB