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/gk20a/gr_gk20a.c | |
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/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index f56702dc..7631decf 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -3235,7 +3235,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, | |||
3235 | u32 lockboost; | 3235 | u32 lockboost; |
3236 | 3236 | ||
3237 | if (g->support_pmu) { | 3237 | if (g->support_pmu) { |
3238 | err = gk20a_pmu_disable_elpg(g); | 3238 | err = nvgpu_pmu_disable_elpg(g); |
3239 | if (err) { | 3239 | if (err) { |
3240 | nvgpu_err(g, | 3240 | nvgpu_err(g, |
3241 | "failed to set disable elpg"); | 3241 | "failed to set disable elpg"); |
@@ -3285,7 +3285,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, | |||
3285 | args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO; | 3285 | args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO; |
3286 | 3286 | ||
3287 | if (g->support_pmu && g->can_elpg) | 3287 | if (g->support_pmu && g->can_elpg) |
3288 | gk20a_pmu_enable_elpg(g); | 3288 | nvgpu_pmu_enable_elpg(g); |
3289 | } | 3289 | } |
3290 | 3290 | ||
3291 | /* init golden image, ELPG enabled after this is done */ | 3291 | /* init golden image, ELPG enabled after this is done */ |