mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
fda4f49f39
commit
75ebe51113
@@ -199,14 +199,13 @@ int nvgpu_nvhost_sync_num_pts(struct sync_fence *fence)
|
||||
|
||||
struct sync_fence *nvgpu_nvhost_sync_create_fence(
|
||||
struct nvgpu_nvhost_dev *nvhost_dev,
|
||||
u32 id, u32 thresh,
|
||||
u32 num_pts, const char *name)
|
||||
u32 id, u32 thresh, const char *name)
|
||||
{
|
||||
struct nvhost_ctrl_sync_fence_info pt = {
|
||||
.id = id,
|
||||
.thresh = thresh,
|
||||
};
|
||||
|
||||
return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, num_pts, name);
|
||||
return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name);
|
||||
}
|
||||
#endif /* CONFIG_SYNC */
|
||||
|
||||
Reference in New Issue
Block a user