summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-27 18:09:05 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:37 -0400
commit9907b97985c47003a179c4357274b737cc0699ee (patch)
tree2b40019669007c9bbbdcad29b5f57b27f13df84f /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
parent1552e3fb09741309ea2d5cc4433e247bae7265e1 (diff)
gpu: nvgpu: Reorg ce2 HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the ce2 sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I7dfd5e8dcd4d6f3623d1b795b6b2e15ff356a13a Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1509632 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index b0f65647..f50fec13 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -82,11 +82,6 @@ int gk20a_ce2_nonstall_isr(struct gk20a *g, u32 inst_id, u32 pri_base)
82 } 82 }
83 return ops; 83 return ops;
84} 84}
85void gk20a_init_ce2(struct gpu_ops *gops)
86{
87 gops->ce2.isr_stall = gk20a_ce2_isr;
88 gops->ce2.isr_nonstall = gk20a_ce2_nonstall_isr;
89}
90 85
91/* static CE app api */ 86/* static CE app api */
92static void gk20a_ce_notify_all_user(struct gk20a *g, u32 event) 87static void gk20a_ce_notify_all_user(struct gk20a *g, u32 event)