summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 32441c5b..21e861fe 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -138,7 +138,7 @@ int gk20a_prepare_poweroff(struct gk20a *g)
138 ret |= g->ops.clk.suspend_clk_support(g); 138 ret |= g->ops.clk.suspend_clk_support(g);
139 139
140#ifdef CONFIG_ARCH_TEGRA_18x_SOC 140#ifdef CONFIG_ARCH_TEGRA_18x_SOC
141 if (g->ops.pmupstate) 141 if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE))
142 gk20a_deinit_pstate_support(g); 142 gk20a_deinit_pstate_support(g);
143#endif 143#endif
144 g->power_on = false; 144 g->power_on = false;
@@ -252,7 +252,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
252 } 252 }
253 253
254#ifdef CONFIG_ARCH_TEGRA_18x_SOC 254#ifdef CONFIG_ARCH_TEGRA_18x_SOC
255 if (g->ops.pmupstate) { 255 if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) {
256 err = gk20a_init_pstate_support(g); 256 err = gk20a_init_pstate_support(g);
257 if (err) { 257 if (err) {
258 nvgpu_err(g, "failed to init pstates"); 258 nvgpu_err(g, "failed to init pstates");
@@ -276,7 +276,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
276 } 276 }
277 277
278#ifdef CONFIG_ARCH_TEGRA_18x_SOC 278#ifdef CONFIG_ARCH_TEGRA_18x_SOC
279 if (g->ops.pmupstate) { 279 if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) {
280 err = gk20a_init_pstate_pmu_support(g); 280 err = gk20a_init_pstate_pmu_support(g);
281 if (err) { 281 if (err) {
282 nvgpu_err(g, "failed to init pstates"); 282 nvgpu_err(g, "failed to init pstates");