]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf/fence: add fence_wait_any_timeout function v2
authorChristian König <christian.koenig@amd.com>
Tue, 20 Oct 2015 14:34:16 +0000 (16:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2015 05:16:16 +0000 (01:16 -0400)
commit3126a7a07aed4a52c56d44a62a87bc7b9909c945
tree0a60a96397354c96d58f5eac2123aa672f0e84d5
parentf6f24765959f25baf9a2e7f1fac7197938749bf5
dma-buf/fence: add fence_wait_any_timeout function v2

Waiting for the first fence in an array of fences to signal.

This is useful for device driver specific resource managers
and also Vulkan needs something similar.

v2: more parameter checks, handling for timeout==0,
    remove NULL entry support, better callback removal.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/dma-buf/fence.c
include/linux/fence.h