summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-11-24 04:42:37 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-27 07:19:26 -0500
commit75ebe51113ab38d0434dda5224baa26dc5329530 (patch)
tree95bf3c04c4561bca0e0135e10d36ec53a679e46a /drivers/gpu/nvgpu/common
parentfda4f49f393d94ff34ccf4e714caf2795229a75a (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/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvhost.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvhost.c b/drivers/gpu/nvgpu/common/linux/nvhost.c
index 611351ae..b8e51aac 100644
--- a/drivers/gpu/nvgpu/common/linux/nvhost.c
+++ b/drivers/gpu/nvgpu/common/linux/nvhost.c
@@ -199,14 +199,13 @@ int nvgpu_nvhost_sync_num_pts(struct sync_fence *fence)
199 199
200struct sync_fence *nvgpu_nvhost_sync_create_fence( 200struct sync_fence *nvgpu_nvhost_sync_create_fence(
201 struct nvgpu_nvhost_dev *nvhost_dev, 201 struct nvgpu_nvhost_dev *nvhost_dev,
202 u32 id, u32 thresh, 202 u32 id, u32 thresh, const char *name)
203 u32 num_pts, const char *name)
204{ 203{
205 struct nvhost_ctrl_sync_fence_info pt = { 204 struct nvhost_ctrl_sync_fence_info pt = {
206 .id = id, 205 .id = id,
207 .thresh = thresh, 206 .thresh = thresh,
208 }; 207 };
209 208
210 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, num_pts, name); 209 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name);
211} 210}
212#endif /* CONFIG_SYNC */ 211#endif /* CONFIG_SYNC */