diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-08-11 19:40:35 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-16 00:58:36 -0400 |
commit | 9bd76b7fa08672181c2a0cce747a59664e226964 (patch) | |
tree | 3439f5e1354d5e23bcb7da98773f123e815eb9fe /drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |
parent | f919aab509aea3753785c2e1481b96d4daf7e4a8 (diff) |
gpu: nvgpu: Optimize sync fence creation
Only create sync-fences in the semaphore synchronization path
when they are actually needed (i.e requested by userspace).
Bug 1795076
Reviewed-on: http://git-master/r/1201564
(cherry picked from commit dc52d424a839e6c064c02b7f02905dd6a59a50af)
Change-Id: Ieac6aef415678d4ea982683a955897c64959436e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1221041
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index ff00bcf1..35488ea3 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -52,7 +52,7 @@ struct gk20a_fence *gk20a_fence_from_semaphore( | |||
52 | struct gk20a_semaphore *semaphore, | 52 | struct gk20a_semaphore *semaphore, |
53 | wait_queue_head_t *semaphore_wq, | 53 | wait_queue_head_t *semaphore_wq, |
54 | struct sync_fence *dependency, | 54 | struct sync_fence *dependency, |
55 | bool wfi); | 55 | bool wfi, bool need_sync_fence); |
56 | 56 | ||
57 | struct gk20a_fence *gk20a_fence_from_syncpt( | 57 | struct gk20a_fence *gk20a_fence_from_syncpt( |
58 | struct platform_device *host1x_pdev, | 58 | struct platform_device *host1x_pdev, |