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/fence_gk20a.h | |
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/fence_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 2cddfdd8..277603d1 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -44,7 +44,6 @@ struct gk20a_fence { | |||
44 | /* Valid for all fence types: */ | 44 | /* Valid for all fence types: */ |
45 | bool valid; | 45 | bool valid; |
46 | struct nvgpu_ref ref; | 46 | struct nvgpu_ref ref; |
47 | bool wfi; | ||
48 | struct sync_fence *sync_fence; | 47 | struct sync_fence *sync_fence; |
49 | const struct gk20a_fence_ops *ops; | 48 | const struct gk20a_fence_ops *ops; |
50 | 49 | ||
@@ -68,12 +67,12 @@ int gk20a_fence_from_semaphore( | |||
68 | struct sync_timeline *timeline, | 67 | struct sync_timeline *timeline, |
69 | struct nvgpu_semaphore *semaphore, | 68 | struct nvgpu_semaphore *semaphore, |
70 | struct nvgpu_cond *semaphore_wq, | 69 | struct nvgpu_cond *semaphore_wq, |
71 | bool wfi, bool need_sync_fence); | 70 | bool need_sync_fence); |
72 | 71 | ||
73 | int gk20a_fence_from_syncpt( | 72 | int gk20a_fence_from_syncpt( |
74 | struct gk20a_fence *fence_out, | 73 | struct gk20a_fence *fence_out, |
75 | struct nvgpu_nvhost_dev *nvhost_dev, | 74 | struct nvgpu_nvhost_dev *nvhost_dev, |
76 | u32 id, u32 value, bool wfi, | 75 | u32 id, u32 value, |
77 | bool need_sync_fence); | 76 | bool need_sync_fence); |
78 | 77 | ||
79 | int gk20a_alloc_fence_pool( | 78 | int gk20a_alloc_fence_pool( |
@@ -88,7 +87,7 @@ struct gk20a_fence *gk20a_alloc_fence( | |||
88 | 87 | ||
89 | void gk20a_init_fence(struct gk20a_fence *f, | 88 | void gk20a_init_fence(struct gk20a_fence *f, |
90 | const struct gk20a_fence_ops *ops, | 89 | const struct gk20a_fence_ops *ops, |
91 | struct sync_fence *sync_fence, bool wfi); | 90 | struct sync_fence *sync_fence); |
92 | 91 | ||
93 | /* Fence operations */ | 92 | /* Fence operations */ |
94 | void gk20a_fence_put(struct gk20a_fence *f); | 93 | void gk20a_fence_put(struct gk20a_fence *f); |