• Rafael J. Wysocki's avatar
    Freezer: Fix APM emulation breakage · cb43c54c
    Rafael J. Wysocki authored
    The APM emulation is currently broken as a result of commit
    83144186
    "Freezer: make kernel threads nonfreezable by default"
    that removed the PF_NOFREEZE annotations from apm_ioctl() without adding
    the appropriate freezer hooks.  Fix it and remove the unnecessary variable flags
    from apm_ioctl().
    
    Special thanks to Franck Bui-Huu <vagabon.xyz@gmail.com> for pointing out the
    problem.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Cc: Pavel Machek <pavel@ucw.cz>
    Cc: Franck Bui-Huu <vagabon.xyz@gmail.com>
    Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    cb43c54c
apm-emulation.c 15 KB