]> 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)
commitc48fa70a32d277335a2db6d344cb128a18b05c5c
tree0a60a96397354c96d58f5eac2123aa672f0e84d5
parent9da26c7dfc976e8ad214139537564da54113947e
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