summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-12 13:32:11 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-17 13:24:25 -0400
commit2c822a63885ec79ac2d860e13438c6154e23e5d0 (patch)
treeeab486eb38d2d74b211ad94e4c1d28368922a23c /drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
parent39a9e251da0fb4da8512593d3ce4f6eba47d5e0c (diff)
gpu: nvgpu: Remove uses of platform->can_elpg
Remove newly introduced uses of gk20a_platform->can_elpg. Rename the field to can_elpg_init and replace all uses with gk20a->can_elpg. Change-Id: Id6e84d4c16159b5da80c583a8a94a9c5cc2423ec Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1480955 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
index af22b13f..fa0911ab 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
@@ -4936,7 +4936,6 @@ clean_up:
4936int gk20a_pmu_pg_global_enable(struct gk20a *g, u32 enable_pg) 4936int gk20a_pmu_pg_global_enable(struct gk20a *g, u32 enable_pg)
4937{ 4937{
4938 u32 status = 0; 4938 u32 status = 0;
4939 struct gk20a_platform *platform = dev_get_drvdata(g->dev);
4940 4939
4941 if (enable_pg == true) { 4940 if (enable_pg == true) {
4942 if (g->ops.pmu.pmu_pg_engines_feature_list && 4941 if (g->ops.pmu.pmu_pg_engines_feature_list &&
@@ -4946,7 +4945,7 @@ int gk20a_pmu_pg_global_enable(struct gk20a *g, u32 enable_pg)
4946 if (g->ops.pmu.pmu_lpwr_enable_pg) 4945 if (g->ops.pmu.pmu_lpwr_enable_pg)
4947 status = g->ops.pmu.pmu_lpwr_enable_pg(g, 4946 status = g->ops.pmu.pmu_lpwr_enable_pg(g,
4948 true); 4947 true);
4949 } else if (g->support_pmu && platform->can_elpg) 4948 } else if (g->support_pmu && g->can_elpg)
4950 status = gk20a_pmu_enable_elpg(g); 4949 status = gk20a_pmu_enable_elpg(g);
4951 } else if (enable_pg == false) { 4950 } else if (enable_pg == false) {
4952 if (g->ops.pmu.pmu_pg_engines_feature_list && 4951 if (g->ops.pmu.pmu_pg_engines_feature_list &&
@@ -4956,7 +4955,7 @@ int gk20a_pmu_pg_global_enable(struct gk20a *g, u32 enable_pg)
4956 if (g->ops.pmu.pmu_lpwr_disable_pg) 4955 if (g->ops.pmu.pmu_lpwr_disable_pg)
4957 status = g->ops.pmu.pmu_lpwr_disable_pg(g, 4956 status = g->ops.pmu.pmu_lpwr_disable_pg(g,
4958 true); 4957 true);
4959 } else if (g->support_pmu && platform->can_elpg) 4958 } else if (g->support_pmu && g->can_elpg)
4960 status = gk20a_pmu_disable_elpg(g); 4959 status = gk20a_pmu_disable_elpg(g);
4961 } 4960 }
4962 4961