summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/power_features
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/power_features')
-rw-r--r--drivers/gpu/nvgpu/common/power_features/cg/cg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/power_features/cg/cg.c b/drivers/gpu/nvgpu/common/power_features/cg/cg.c
index 7b66a81d..2c61fb29 100644
--- a/drivers/gpu/nvgpu/common/power_features/cg/cg.c
+++ b/drivers/gpu/nvgpu/common/power_features/cg/cg.c
@@ -473,7 +473,7 @@ void nvgpu_cg_elcg_set_elcg_enabled(struct gk20a *g, bool enable)
473 473
474 gk20a_gr_wait_initialized(g); 474 gk20a_gr_wait_initialized(g);
475 475
476 nvgpu_mutex_release(&g->cg_pg_lock); 476 nvgpu_mutex_acquire(&g->cg_pg_lock);
477 if (enable) { 477 if (enable) {
478 if (!g->elcg_enabled) { 478 if (!g->elcg_enabled) {
479 g->elcg_enabled = true; 479 g->elcg_enabled = true;