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/fence_gk20a.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h') 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 { /* Valid for all fence types: */ bool valid; struct nvgpu_ref ref; - bool wfi; struct sync_fence *sync_fence; const struct gk20a_fence_ops *ops; @@ -68,12 +67,12 @@ int gk20a_fence_from_semaphore( struct sync_timeline *timeline, struct nvgpu_semaphore *semaphore, struct nvgpu_cond *semaphore_wq, - bool wfi, bool need_sync_fence); + bool need_sync_fence); int gk20a_fence_from_syncpt( struct gk20a_fence *fence_out, struct nvgpu_nvhost_dev *nvhost_dev, - u32 id, u32 value, bool wfi, + u32 id, u32 value, bool need_sync_fence); int gk20a_alloc_fence_pool( @@ -88,7 +87,7 @@ struct gk20a_fence *gk20a_alloc_fence( void gk20a_init_fence(struct gk20a_fence *f, const struct gk20a_fence_ops *ops, - struct sync_fence *sync_fence, bool wfi); + struct sync_fence *sync_fence); /* Fence operations */ void gk20a_fence_put(struct gk20a_fence *f); -- cgit v1.2.2