Freezer: Fix APM emulation breakage
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 17 Dec 2007 00:03:46 +0000 (01:03 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 20:01:33 +0000 (12:01 -0800)
commitb98ebe01754d083dbdfe7bd3cd46fa2106fad4ef
tree91a20701466fb92f638e658834c379ec5c8518af
parent78489300c39e88c1f75dbc4a360176cb0778361c
Freezer: Fix APM emulation breakage

The APM emulation is currently broken as a result of commit
831441862956fffa17b9801db37e6ea1650b0f69
"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().

This problem has been fixed in the mainline by
commit cb43c54ca05c01533c45e4d3abfe8f99b7acf624
"Freezer: Fix APM emulation breakage".

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/apm-emulation.c
include/linux/freezer.h