]> git.karo-electronics.de Git - karo-tx-linux.git/commit
freezer: don't unnecessarily set PF_NOFREEZE explicitly
authorTejun Heo <tj@kernel.org>
Sat, 20 Aug 2011 09:31:39 +0000 (11:31 +0200)
committerTejun Heo <tj@kernel.org>
Sat, 20 Aug 2011 09:31:39 +0000 (11:31 +0200)
commitfebab68efa4503c00d805b595138f662da84475f
treeb4c27addcf18657ca05261e361588f4134d8cdaf
parentf0043f7496d92de839b0582b0343d2ebc92f9bde
freezer: don't unnecessarily set PF_NOFREEZE explicitly

Some drivers set PF_NOFREEZE in their kthread functions which is
completely unnecessary and racy - some part of freezer code doesn't
consider cases where PF_NOFREEZE is set asynchronous to freezer
operations.

In general, there's no reason to allow setting PF_NOFREEZE explicitly.
Remove them and change the documentation to note that setting
PF_NOFREEZE directly isn't allowed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: "Gustavo F. Padovan" <padovan@profusion.mobi>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: wwang <wei_wang@realsil.com.cn>
Documentation/power/freezing-of-tasks.txt
drivers/bluetooth/btmrvl_main.c
drivers/mfd/twl4030-irq.c
drivers/mfd/twl6030-irq.c
drivers/staging/rts_pstor/rtsx.c