aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2011-08-18 08:06:53 +0000
committerJiri Kosina <[email protected]>2011-08-23 07:16:29 +0000
commit1d927c3b5a4005a2ebc5356e7e1eec436e15fa22 (patch)
tree86a97fc15d4ea1d4fcd5bf5d92c31bb130ba6d75 /lib/dynamic_debug.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb... (diff)
downloadkernel-1d927c3b5a4005a2ebc5356e7e1eec436e15fa22.tar.gz
kernel-1d927c3b5a4005a2ebc5356e7e1eec436e15fa22.zip
apm-emulation: use wait_event_freezable() instead of freezer_[do_not_]count()
vfork is moving away from freezer_[do_not_]count() one way or the other leaving apm_ioctl() as the only user. apm_ioctl() just wants to wait for suspend/resume cycle to complete without hindering the freezer. Use wait_event_freezable() instead. The only annoyance is that wait_event_freezable() wakes up with -ERESTART if there are pending signals while apm_ioctl() wants to ignore all signals until suspend is complete. We can play with @current->[real_]blocked but this is hardly a performance or latency critical path - simply chill a bit on each iteration until SUSPEND_DONE for unlikely cases where there are pending signals. Signed-off-by: Tejun Heo <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions