From 92f6eb016cc759b24e249ed6c17cff537cc35db7 Mon Sep 17 00:00:00 2001 From: Sunny He Date: Tue, 27 Jun 2017 16:08:48 -0700 Subject: gpu: nvgpu: Remove pmupstate flag from gpu_ops Replace pmupstate boolean flag in gpu_ops with entry in common flag system. The new common flag is NVGPU_PMU_PSTATE Jira NVGPU-74 Change-Id: I4e1ba922a48145b1cf3488b6f14fde78107adb5b Signed-off-by: Sunny He Reviewed-on: https://git-master.nvidia.com/r/1514059 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/gk20a/gk20a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') 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) ret |= g->ops.clk.suspend_clk_support(g); #ifdef CONFIG_ARCH_TEGRA_18x_SOC - if (g->ops.pmupstate) + if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) gk20a_deinit_pstate_support(g); #endif g->power_on = false; @@ -252,7 +252,7 @@ int gk20a_finalize_poweron(struct gk20a *g) } #ifdef CONFIG_ARCH_TEGRA_18x_SOC - if (g->ops.pmupstate) { + if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) { err = gk20a_init_pstate_support(g); if (err) { nvgpu_err(g, "failed to init pstates"); @@ -276,7 +276,7 @@ int gk20a_finalize_poweron(struct gk20a *g) } #ifdef CONFIG_ARCH_TEGRA_18x_SOC - if (g->ops.pmupstate) { + if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) { err = gk20a_init_pstate_pmu_support(g); if (err) { nvgpu_err(g, "failed to init pstates"); -- cgit v1.2.2