alistair23-linux/drivers/dma-buf
Jammy Zhou fb8b7d2b9d 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 <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-By: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
2015-01-22 11:27:57 +05:30
..
dma-buf.c dma-buf: don't open-code atomic_long_read() 2014-10-09 02:39:07 -04:00
fence.c treewide: Fix typo in Documentation/DocBook/device-drivers 2014-11-03 11:53:34 -05:00
Makefile seqno-fence: Hardware dma-buf implementation of fencing (v6) 2014-07-08 12:50:59 -07:00
reservation.c reservation: wait only with non-zero timeout specified (v3) 2015-01-22 11:27:57 +05:30
seqno-fence.c seqno-fence: Hardware dma-buf implementation of fencing (v6) 2014-07-08 12:50:59 -07:00