diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-07 12:56:00 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-13 16:19:47 -0400 |
commit | c18364d0c4b3fb6581f937c018cd01fc329601bb (patch) | |
tree | 923ab682435379dc8bad7852c49725bf7f0f5286 /drivers/gpu/nvgpu/lpwr | |
parent | 45355f00e7de9068f403682044f550026fa7e86e (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/lpwr')
-rw-r--r-- | drivers/gpu/nvgpu/lpwr/lpwr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c index 85acfd67..95eea2e3 100644 --- a/drivers/gpu/nvgpu/lpwr/lpwr.c +++ b/drivers/gpu/nvgpu/lpwr/lpwr.c | |||
@@ -363,7 +363,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) | |||
363 | present_pstate); | 363 | present_pstate); |
364 | if (is_rppg_supported) { | 364 | if (is_rppg_supported) { |
365 | if (g->support_pmu && g->can_elpg) | 365 | if (g->support_pmu && g->can_elpg) |
366 | status = gk20a_pmu_enable_elpg(g); | 366 | status = nvgpu_pmu_enable_elpg(g); |
367 | } | 367 | } |
368 | 368 | ||
369 | nvgpu_mutex_release(&pmu->pg_mutex); | 369 | nvgpu_mutex_release(&pmu->pg_mutex); |
@@ -393,7 +393,7 @@ int nvgpu_lpwr_disable_pg(struct gk20a *g, bool pstate_lock) | |||
393 | present_pstate); | 393 | present_pstate); |
394 | if (is_rppg_supported) { | 394 | if (is_rppg_supported) { |
395 | if (g->support_pmu && g->elpg_enabled) { | 395 | if (g->support_pmu && g->elpg_enabled) { |
396 | status = gk20a_pmu_disable_elpg(g); | 396 | status = nvgpu_pmu_disable_elpg(g); |
397 | if (status) | 397 | if (status) |
398 | goto exit_unlock; | 398 | goto exit_unlock; |
399 | } | 399 | } |