mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
9c68af58a9
commit
d6e40fc07a
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user