summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/pmu/pmu.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-06-07 12:56:00 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-13 16:19:47 -0400
commitc18364d0c4b3fb6581f937c018cd01fc329601bb (patch)
tree923ab682435379dc8bad7852c49725bf7f0f5286 /drivers/gpu/nvgpu/common/pmu/pmu.c
parent45355f00e7de9068f403682044f550026fa7e86e (diff)
gpu: nvgpu: moved pg out from pmu_gk20a.c/h
- moved pg related code to pmu_pg.c under common/pmu folder PG state machine support methods PG ACK handlers AELPG methods PG enable/disable methods -prepended with nvgpu_ for elpg/aelpg global methods by replacing gk20a_ JIRA NVGPU-97 Change-Id: I2148a69ff86b5c5d43c521ff6e241db84afafd82 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1498363 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/pmu/pmu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c
index ca532049..fc72d1fc 100644
--- a/drivers/gpu/nvgpu/common/pmu/pmu.c
+++ b/drivers/gpu/nvgpu/common/pmu/pmu.c
@@ -276,15 +276,15 @@ static void pmu_setup_hw_enable_elpg(struct gk20a *g)
276 /* Init reg with prod values*/ 276 /* Init reg with prod values*/
277 if (g->ops.pmu.pmu_setup_elpg) 277 if (g->ops.pmu.pmu_setup_elpg)
278 g->ops.pmu.pmu_setup_elpg(g); 278 g->ops.pmu.pmu_setup_elpg(g);
279 gk20a_pmu_enable_elpg(g); 279 nvgpu_pmu_enable_elpg(g);
280 } 280 }
281 281
282 nvgpu_udelay(50); 282 nvgpu_udelay(50);
283 283
284 /* Enable AELPG */ 284 /* Enable AELPG */
285 if (g->aelpg_enabled) { 285 if (g->aelpg_enabled) {
286 gk20a_aelpg_init(g); 286 nvgpu_aelpg_init(g);
287 gk20a_aelpg_init_and_enable(g, PMU_AP_CTRL_ID_GRAPHICS); 287 nvgpu_aelpg_init_and_enable(g, PMU_AP_CTRL_ID_GRAPHICS);
288 } 288 }
289} 289}
290 290
@@ -398,7 +398,7 @@ int nvgpu_pmu_destroy(struct gk20a *g)
398 nvgpu_pmu_get_pg_stats(g, 398 nvgpu_pmu_get_pg_stats(g,
399 PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data); 399 PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data);
400 400
401 gk20a_pmu_disable_elpg(g); 401 nvgpu_pmu_disable_elpg(g);
402 pmu->initialized = false; 402 pmu->initialized = false;
403 403
404 /* update the s/w ELPG residency counters */ 404 /* update the s/w ELPG residency counters */