diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-01-10 07:26:27 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-19 11:13:13 -0500 |
commit | f50c2af8a7d147855e5537531078bb03740abb67 (patch) | |
tree | 2c67786c1f544fd248994b64992712c6f890ac67 /drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |
parent | d52b88315a24ed014fa4a737c2806394061e9dfb (diff) |
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 <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1636344
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@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/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 9 |
1 files changed, 4 insertions, 5 deletions
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, | |||
223 | } | 223 | } |
224 | 224 | ||
225 | err = gk20a_fence_from_syncpt(fence, sp->nvhost_dev, sp->id, thresh, | 225 | err = gk20a_fence_from_syncpt(fence, sp->nvhost_dev, sp->id, thresh, |
226 | wfi_cmd, need_sync_fence); | 226 | need_sync_fence); |
227 | if (err) | 227 | if (err) |
228 | goto clean_up_priv_cmd; | 228 | goto clean_up_priv_cmd; |
229 | 229 | ||
@@ -648,7 +648,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
648 | sema->timeline, | 648 | sema->timeline, |
649 | fp_sema, | 649 | fp_sema, |
650 | &c->semaphore_wq, | 650 | &c->semaphore_wq, |
651 | false, false); | 651 | false); |
652 | if (err) { | 652 | if (err) { |
653 | nvgpu_semaphore_put(fp_sema); | 653 | nvgpu_semaphore_put(fp_sema); |
654 | goto clean_up_priv_cmd; | 654 | goto clean_up_priv_cmd; |
@@ -658,7 +658,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
658 | * Init an empty fence. It will instantly return | 658 | * Init an empty fence. It will instantly return |
659 | * from gk20a_fence_wait(). | 659 | * from gk20a_fence_wait(). |
660 | */ | 660 | */ |
661 | gk20a_init_fence(fence, NULL, NULL, false); | 661 | gk20a_init_fence(fence, NULL, NULL); |
662 | 662 | ||
663 | sync_fence_put(sync_fence); | 663 | sync_fence_put(sync_fence); |
664 | goto skip_slow_path; | 664 | goto skip_slow_path; |
@@ -708,7 +708,7 @@ static int gk20a_channel_semaphore_wait_fd( | |||
708 | * already signaled | 708 | * already signaled |
709 | */ | 709 | */ |
710 | err = gk20a_fence_from_semaphore(c->g, fence, sema->timeline, w->sema, | 710 | err = gk20a_fence_from_semaphore(c->g, fence, sema->timeline, w->sema, |
711 | &c->semaphore_wq, false, false); | 711 | &c->semaphore_wq, false); |
712 | if (err) | 712 | if (err) |
713 | goto clean_up_sema; | 713 | goto clean_up_sema; |
714 | 714 | ||
@@ -785,7 +785,6 @@ static int __gk20a_channel_semaphore_incr( | |||
785 | err = gk20a_fence_from_semaphore(c->g, fence, | 785 | err = gk20a_fence_from_semaphore(c->g, fence, |
786 | sp->timeline, semaphore, | 786 | sp->timeline, semaphore, |
787 | &c->semaphore_wq, | 787 | &c->semaphore_wq, |
788 | wfi_cmd, | ||
789 | need_sync_fence); | 788 | need_sync_fence); |
790 | if (err) | 789 | if (err) |
791 | goto clean_up_sema; | 790 | goto clean_up_sema; |