diff options
author | Christian König <christian.koenig@amd.com> | 2015-10-20 16:34:16 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-30 01:16:16 -0400 |
commit | a519435a96597d8cd96123246fea4ae5a6c90b02 (patch) | |
tree | 0a60a96397354c96d58f5eac2123aa672f0e84d5 /include/linux/fence.h | |
parent | fe537d003f9a97c65848e47b3b9acbb0c5002fd9 (diff) |
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>
Diffstat (limited to 'include/linux/fence.h')
-rw-r--r-- | include/linux/fence.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fence.h b/include/linux/fence.h index 39efee130d2b..a4084d6bb851 100644 --- a/include/linux/fence.h +++ b/include/linux/fence.h @@ -305,7 +305,8 @@ static inline struct fence *fence_later(struct fence *f1, struct fence *f2) } signed long fence_wait_timeout(struct fence *, bool intr, signed long timeout); - +signed long fence_wait_any_timeout(struct fence **fences, uint32_t count, + bool intr, signed long timeout); /** * fence_wait - sleep until the fence gets signaled |