diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-11-24 04:42:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-27 07:19:26 -0500 |
commit | 75ebe51113ab38d0434dda5224baa26dc5329530 (patch) | |
tree | 95bf3c04c4561bca0e0135e10d36ec53a679e46a /drivers/gpu/nvgpu/gk20a | |
parent | fda4f49f393d94ff34ccf4e714caf2795229a75a (diff) |
gpu: nvgpu: drop num_pts argument in nvgpu_nvhost_sync_create_fence
For nvhost_sync_create_fence, num_pts corresponds to the number of
syncpoints in the array given to it, and the wrapper
nvgpu_nvhost_sync_create_fence only supports one syncpoint at a time.
Use 1 explicitly and make it impossible for the caller of this wrapper
to use something else by mistake.
Change-Id: I2497c1dd4fed0906e3bb07e8f5ddd3a9346cb381
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1604339
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index d0df8857..60858424 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -317,7 +317,7 @@ int gk20a_fence_from_syncpt( | |||
317 | #ifdef CONFIG_SYNC | 317 | #ifdef CONFIG_SYNC |
318 | if (need_sync_fence) { | 318 | if (need_sync_fence) { |
319 | sync_fence = nvgpu_nvhost_sync_create_fence(nvhost_dev, | 319 | sync_fence = nvgpu_nvhost_sync_create_fence(nvhost_dev, |
320 | id, value, 1, "fence"); | 320 | id, value, "fence"); |
321 | if (IS_ERR(sync_fence)) | 321 | if (IS_ERR(sync_fence)) |
322 | return -1; | 322 | return -1; |
323 | } | 323 | } |