]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf/fence: don't wait when specified timeout is zero
authorJammy Zhou <Jammy.Zhou@amd.com>
Wed, 21 Jan 2015 10:35:48 +0000 (18:35 +0800)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 22 Jan 2015 05:58:51 +0000 (11:28 +0530)
commita45c867e65a544522e77c65073d72d66c09f6060
tree021c2489569f3a29f06300b86bc2d78d99af24c2
parent048f9257282235782c641cdd167ae2047ecef99a
dma-buf/fence: don't wait when specified timeout is zero

When specified timeout is zero for fence_wait_timeout, just check if the fence
is signaled or not without wait.

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-By: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/fence.c