From f50c2af8a7d147855e5537531078bb03740abb67 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Wed, 10 Jan 2018 14:26:27 +0200 Subject: gpu: nvgpu: delete unused wfi in gk20a_fence The boolean wfi field in struct gk20a_fence is not used for anything. Delete it and a couple of function parameters that carried the flag. Jira NVGPU-43 Change-Id: I399c8709102a3f944cab669ff806761aedaeb6d3 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1636344 Reviewed-by: svc-mobile-coverity Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index d83684e4..4a6b8162 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c @@ -223,7 +223,7 @@ static int __gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, } err = gk20a_fence_from_syncpt(fence, sp->nvhost_dev, sp->id, thresh, - wfi_cmd, need_sync_fence); + need_sync_fence); if (err) goto clean_up_priv_cmd; @@ -648,7 +648,7 @@ static int gk20a_channel_semaphore_wait_fd( sema->timeline, fp_sema, &c->semaphore_wq, - false, false); + false); if (err) { nvgpu_semaphore_put(fp_sema); goto clean_up_priv_cmd; @@ -658,7 +658,7 @@ static int gk20a_channel_semaphore_wait_fd( * Init an empty fence. It will instantly return * from gk20a_fence_wait(). */ - gk20a_init_fence(fence, NULL, NULL, false); + gk20a_init_fence(fence, NULL, NULL); sync_fence_put(sync_fence); goto skip_slow_path; @@ -708,7 +708,7 @@ static int gk20a_channel_semaphore_wait_fd( * already signaled */ err = gk20a_fence_from_semaphore(c->g, fence, sema->timeline, w->sema, - &c->semaphore_wq, false, false); + &c->semaphore_wq, false); if (err) goto clean_up_sema; @@ -785,7 +785,6 @@ static int __gk20a_channel_semaphore_incr( err = gk20a_fence_from_semaphore(c->g, fence, sp->timeline, semaphore, &c->semaphore_wq, - wfi_cmd, need_sync_fence); if (err) goto clean_up_sema; -- cgit v1.2.2