diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2018-02-07 04:32:37 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2018-02-07 04:32:37 +0300 |
commit | 3c728d3aa1fd5c7c2461835a93ac8fad57813db6 (patch) | |
tree | cecd89fba4db2b7cab21b4b0d7ee00d38a6484e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h | |
parent | 155494dbbbf4d6d6512b8bc2dc6bc483e47e1c71 (diff) | |
download | linux-3c728d3aa1fd5c7c2461835a93ac8fad57813db6.tar.xz |
drm/amdgpu: add amdgpu_sync_clone
Cloning a sync object is useful for waiting for a sync object
without locking the original structure indefinitely, blocking
other threads.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h index 7aba38d5c9df..10cf23a57f17 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h @@ -50,6 +50,7 @@ int amdgpu_sync_resv(struct amdgpu_device *adev, struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, struct amdgpu_ring *ring); struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync, bool *explicit); +int amdgpu_sync_clone(struct amdgpu_sync *source, struct amdgpu_sync *clone); int amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr); void amdgpu_sync_free(struct amdgpu_sync *sync); int amdgpu_sync_init(void); |