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.h | |
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.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index deb8ea9c..de80c5e3 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -547,14 +547,14 @@ void gk20a_gr_clear_sm_hww(struct gk20a *g, | |||
547 | ({ \ | 547 | ({ \ |
548 | int err = 0; \ | 548 | int err = 0; \ |
549 | if (g->support_pmu && g->elpg_enabled) {\ | 549 | if (g->support_pmu && g->elpg_enabled) {\ |
550 | err = gk20a_pmu_disable_elpg(g); \ | 550 | err = nvgpu_pmu_disable_elpg(g); \ |
551 | if (err) \ | 551 | if (err) \ |
552 | gk20a_pmu_enable_elpg(g); \ | 552 | nvgpu_pmu_enable_elpg(g); \ |
553 | } \ | 553 | } \ |
554 | if (!err) { \ | 554 | if (!err) { \ |
555 | err = func; \ | 555 | err = func; \ |
556 | if (g->support_pmu && g->elpg_enabled) \ | 556 | if (g->support_pmu && g->elpg_enabled) \ |
557 | gk20a_pmu_enable_elpg(g); \ | 557 | nvgpu_pmu_enable_elpg(g); \ |
558 | } \ | 558 | } \ |
559 | err; \ | 559 | err; \ |
560 | }) | 560 | }) |