diff options
author | Jammy Zhou <[email protected]> | 2015-01-21 18:35:47 +0800 |
---|---|---|
committer | Sumit Semwal <[email protected]> | 2015-01-22 11:27:57 +0530 |
commit | fb8b7d2b9d80e1e71f379e57355936bd2b024be9 (patch) | |
tree | 8aa091a8b4cd62f330f9397ee43c99c6df8aa13f /lib/bitmap.c | |
parent | b942c653ae265abbd31032f3b4f5f857e5c7c723 (diff) |
reservation: wait only with non-zero timeout specified (v3)
When the timeout value passed to reservation_object_wait_timeout_rcu
is zero, no wait should be done if the fences are not signaled.
Return '1' for idle and '0' for busy if the specified timeout is '0'
to keep consistent with the case of non-zero timeout.
v2: call fence_put if not signaled in the case of timeout==0
v3: switch to reservation_object_test_signaled_rcu
Signed-off-by: Jammy Zhou <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-By: Maarten Lankhorst <[email protected]>
Signed-off-by: Sumit Semwal <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions