From fbad02d5e045fbc10f44fbecf419235938d4d0bc Mon Sep 17 00:00:00 2001 From: ddutta Date: Wed, 26 Feb 2020 16:07:29 +0530 Subject: gpu: nvgpu: remove blcg_enable/disable blcg is always enabled by default and there is no need for disabling this during gr init or gr reset. Bug 2866010 Change-Id: Iaf17b7fdf05ad04fe435e1a1fda758deedc6484c Signed-off-by: ddutta Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2303114 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: Sagar Kamble Reviewed-by: Bibek Basu Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/power_features/cg/cg.c | 28 ------------------------- 1 file changed, 28 deletions(-) (limited to 'drivers/gpu/nvgpu/common/power_features/cg/cg.c') diff --git a/drivers/gpu/nvgpu/common/power_features/cg/cg.c b/drivers/gpu/nvgpu/common/power_features/cg/cg.c index a966c4c6..7b66a81d 100644 --- a/drivers/gpu/nvgpu/common/power_features/cg/cg.c +++ b/drivers/gpu/nvgpu/common/power_features/cg/cg.c @@ -84,34 +84,6 @@ void nvgpu_cg_elcg_disable_no_wait(struct gk20a *g) nvgpu_mutex_release(&g->cg_pg_lock); } -void nvgpu_cg_blcg_disable_no_wait(struct gk20a *g) { - nvgpu_log_fn(g, " "); - - if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_BLCG)) { - return; - } - - nvgpu_mutex_acquire(&g->cg_pg_lock); - if (g->blcg_enabled) { - nvgpu_cg_set_mode(g, BLCG_MODE, BLCG_RUN); - } - nvgpu_mutex_release(&g->cg_pg_lock); -} - -void nvgpu_cg_blcg_enable_no_wait(struct gk20a *g) { - nvgpu_log_fn(g, " "); - - if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_BLCG)) { - return; - } - - nvgpu_mutex_acquire(&g->cg_pg_lock); - if (g->blcg_enabled) { - nvgpu_cg_set_mode(g, BLCG_MODE, BLCG_AUTO); - } - nvgpu_mutex_release(&g->cg_pg_lock); -} - void nvgpu_cg_elcg_enable(struct gk20a *g) { nvgpu_log_fn(g, " "); -- cgit v1.2.2