diff options
author | Oleg Nesterov <[email protected]> | 2013-10-07 20:31:06 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-10-16 14:22:17 +0200 |
commit | 8922915b38cd8b72f8e5af614b95be71d1d299d4 (patch) | |
tree | d0770b40ff4d01aaaf050a651c717337b237294e /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 6acce3ef84520537f8a09a12c9ddbe814a584dd2 (diff) |
sched/wait: Add ___wait_cond_timeout() to wait_event*_timeout() too
Commit 4c663cfc ("wait: fix false timeouts when using
wait_event_timeout()") introduced the additional condition checks
after a timeout but only in the "slow" __wait*() paths.
wait_event_timeout(wq, CONDITION, 0) still returns 0 if CONDITION
is already true and we do not call __wait*().
Now that we have ___wait_cond_timeout() we can use it instead to
ensure that __ret will be properly updated.
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions