diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-05-21 08:01:41 -0400 |
---|---|---|
committer | Arto Merilainen <amerilainen@nvidia.com> | 2015-06-01 02:41:12 -0400 |
commit | 2ea47dec763b818852066db53fbf08f5146e6e9a (patch) | |
tree | a3bef3e28487221f26545237d36d170d26e6ffd6 /drivers/gpu/nvgpu/gk20a | |
parent | 4531a27adcc5629d1e246af5b0a5ca378daca9d1 (diff) |
gpu: nvgpu: drop syncpoint refcount instead of direct free
Drop host1x syncpoint refcount with nvhost_syncpt_put_ref_ext()
instead of freeing it directly
Bug 1646883
Change-Id: Ib213e58031a9302e683f8d13ebb4e1f913206464
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/747150
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index a488178f..b5bd6bf7 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -283,7 +283,7 @@ static void gk20a_channel_syncpt_destroy(struct gk20a_channel_sync *s) | |||
283 | struct gk20a_channel_syncpt *sp = | 283 | struct gk20a_channel_syncpt *sp = |
284 | container_of(s, struct gk20a_channel_syncpt, ops); | 284 | container_of(s, struct gk20a_channel_syncpt, ops); |
285 | nvhost_syncpt_set_min_eq_max_ext(sp->host1x_pdev, sp->id); | 285 | nvhost_syncpt_set_min_eq_max_ext(sp->host1x_pdev, sp->id); |
286 | nvhost_free_syncpt(sp->id); | 286 | nvhost_syncpt_put_ref_ext(sp->id); |
287 | kfree(sp); | 287 | kfree(sp); |
288 | } | 288 | } |
289 | 289 | ||