nvgpu: gpu: pmu: Use pmu ops to call pmu_reset().

In this patch hard coded function calls for PMU
reset are replaced by PMU ops.

Change-Id: I266c43e3540163a133895244dcf91169116812f5
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: http://git-master/r/1303757
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Goyal
2017-02-13 15:00:00 +05:30
committed by mobile promotions
parent 9c68af58a9
commit d6e40fc07a
3 changed files with 3 additions and 3 deletions

View File

@@ -3246,7 +3246,7 @@ static int gk20a_init_pmu_setup_hw1(struct gk20a *g)
gk20a_dbg_fn("");
nvgpu_mutex_acquire(&pmu->isr_mutex);
pmu_reset(pmu);
g->ops.pmu.reset(g);
pmu->isr_enabled = true;
nvgpu_mutex_release(&pmu->isr_mutex);

View File

@@ -1286,7 +1286,7 @@ int gm20b_init_nspmu_setup_hw1(struct gk20a *g)
gk20a_dbg_fn("");
nvgpu_mutex_acquire(&pmu->isr_mutex);
pmu_reset(pmu);
g->ops.pmu.reset(g);
pmu->isr_enabled = true;
nvgpu_mutex_release(&pmu->isr_mutex);

View File

@@ -307,7 +307,7 @@ static int gp10b_init_pmu_setup_hw1(struct gk20a *g)
gk20a_dbg_fn("");
nvgpu_mutex_acquire(&pmu->isr_mutex);
pmu_reset(pmu);
g->ops.pmu.reset(g);
pmu->isr_enabled = true;
nvgpu_mutex_release(&pmu->isr_mutex);