]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/dma-buf/dma-fence.c
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)
commita519435a96597d8cd96123246fea4ae5a6c90b02
tree0a60a96397354c96d58f5eac2123aa672f0e84d5
parentfe537d003f9a97c65848e47b3b9acbb0c5002fd9
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