summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-07-27 15:58:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-04 12:23:56 -0400
commitb8efd9d04537d6129e2ce8b067417e46b0e7436f (patch)
tree1a40179a893e10c0fdcdd56797599bcdf6b55206 /drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
parentc16797e35c2926bf34a61d5d8f37d5675ec23b1b (diff)
gpu: nvgpu: Make LTC disabling common code
Refactor the sync_debugfs LTC HAL op so that the logic to enable or disable LTC goes to common code nvgpu_ltc_sync_enabled() and the LTC HAL set_enabled only performs the hardware register access. Create a new common function nvgpu_init_ltc_support() to initialize the LTC software variable, and move hardware initialization of LTC to be called from it. JIRA NVGPU-62 Change-Id: Ib1cf4f5b83ca3dac08407464ed56a732e0a33923 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528262 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
index b5f2cda6..385754ba 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
@@ -20,7 +20,5 @@ void gp10b_ltc_isr(struct gk20a *g);
20int gp10b_determine_L2_size_bytes(struct gk20a *g); 20int gp10b_determine_L2_size_bytes(struct gk20a *g);
21int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr); 21int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr);
22void gp10b_ltc_init_fs_state(struct gk20a *g); 22void gp10b_ltc_init_fs_state(struct gk20a *g);
23#ifdef CONFIG_DEBUG_FS 23void gp10b_ltc_set_enabled(struct gk20a *g, bool enabled);
24void gp10b_ltc_sync_debugfs(struct gk20a *g);
25#endif
26#endif 24#endif