summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorKautuk Consul2011-11-15 23:52:34 +0100
committerGreg Kroah-Hartman2011-11-16 01:07:39 +0100
commit65e6757be42ddf0a9115ec0e6af268fec9727359 (patch)
tree78d757c6cad66bb9daf0c3136d5e92a15edb8432 /include/linux/device.h
parentlib: devres: add convenience function to remap a resource (diff)
downloadkernel-qcow2-linux-65e6757be42ddf0a9115ec0e6af268fec9727359.tar.gz
kernel-qcow2-linux-65e6757be42ddf0a9115ec0e6af268fec9727359.tar.xz
kernel-qcow2-linux-65e6757be42ddf0a9115ec0e6af268fec9727359.zip
devtmpfsd: fix task state handling
- Set the state to TASK_INTERRUPTIBLE using __set_current_state() instead of set_current_state() as the spin_unlock is an implicit memory barrier. - After return from schedule(), there is no need to set the current state to TASK_RUNNING - a call to schedule() always returns in TASK_RUNNING state. Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions