summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index 421ccd15..df7ab5af 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -882,7 +882,7 @@ static void gv11b_fifo_teardown_ch_tsg(struct gk20a *g, u32 act_eng_bitmask,
882 g->fifo.deferred_reset_pending = false; 882 g->fifo.deferred_reset_pending = false;
883 883
884 /* Disable power management */ 884 /* Disable power management */
885 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) { 885 if (g->support_pmu && g->elpg_enabled) {
886 if (gk20a_pmu_disable_elpg(g)) 886 if (gk20a_pmu_disable_elpg(g))
887 nvgpu_err(g, "failed to set disable elpg"); 887 nvgpu_err(g, "failed to set disable elpg");
888 } 888 }
@@ -1011,7 +1011,7 @@ static void gv11b_fifo_teardown_ch_tsg(struct gk20a *g, u32 act_eng_bitmask,
1011 !RUNLIST_INFO_MUTEX_LOCKED); 1011 !RUNLIST_INFO_MUTEX_LOCKED);
1012 1012
1013 /* It is safe to enable ELPG again. */ 1013 /* It is safe to enable ELPG again. */
1014 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) 1014 if (g->support_pmu && g->elpg_enabled)
1015 gk20a_pmu_enable_elpg(g); 1015 gk20a_pmu_enable_elpg(g);
1016} 1016}
1017 1017