Freezer: Fix APM emulation breakage
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 21 Nov 2007 01:53:14 +0000 (02:53 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 21 Nov 2007 03:28:20 +0000 (22:28 -0500)
commitcb43c54ca05c01533c45e4d3abfe8f99b7acf624
tree9151f04b22d7fd4d4c0a879a67d9c778ab85b558
parent2ffbb8377c7a0713baf6644e285adc27a5654582
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().

Special thanks to Franck Bui-Huu <vagabon.xyz@gmail.com> for pointing out the
problem.

Signed-off-by: Rafael 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: Len Brown <len.brown@intel.com>
drivers/char/apm-emulation.c