summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2017-02-13 04:30:00 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-24 00:33:33 -0500
commitd6e40fc07a5d6386d759111f957c7a5e0605500e (patch)
treee5cafc11e3f991aeeea62baf223e8baa7f84f071 /drivers
parent9c68af58a9d2542e33ced54bdabc35b18f589475 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/gm20b/acr_gm20b.c2
-rw-r--r--drivers/gpu/nvgpu/gp10b/pmu_gp10b.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
index 4ea9b911..a5664a0e 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
@@ -3246,7 +3246,7 @@ static int gk20a_init_pmu_setup_hw1(struct gk20a *g)
3246 gk20a_dbg_fn(""); 3246 gk20a_dbg_fn("");
3247 3247
3248 nvgpu_mutex_acquire(&pmu->isr_mutex); 3248 nvgpu_mutex_acquire(&pmu->isr_mutex);
3249 pmu_reset(pmu); 3249 g->ops.pmu.reset(g);
3250 pmu->isr_enabled = true; 3250 pmu->isr_enabled = true;
3251 nvgpu_mutex_release(&pmu->isr_mutex); 3251 nvgpu_mutex_release(&pmu->isr_mutex);
3252 3252
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
index db3974bb..ed144c0f 100644
--- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
@@ -1286,7 +1286,7 @@ int gm20b_init_nspmu_setup_hw1(struct gk20a *g)
1286 gk20a_dbg_fn(""); 1286 gk20a_dbg_fn("");
1287 1287
1288 nvgpu_mutex_acquire(&pmu->isr_mutex); 1288 nvgpu_mutex_acquire(&pmu->isr_mutex);
1289 pmu_reset(pmu); 1289 g->ops.pmu.reset(g);
1290 pmu->isr_enabled = true; 1290 pmu->isr_enabled = true;
1291 nvgpu_mutex_release(&pmu->isr_mutex); 1291 nvgpu_mutex_release(&pmu->isr_mutex);
1292 1292
diff --git a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
index 9c565729..15b12c74 100644
--- a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c
@@ -307,7 +307,7 @@ static int gp10b_init_pmu_setup_hw1(struct gk20a *g)
307 gk20a_dbg_fn(""); 307 gk20a_dbg_fn("");
308 308
309 nvgpu_mutex_acquire(&pmu->isr_mutex); 309 nvgpu_mutex_acquire(&pmu->isr_mutex);
310 pmu_reset(pmu); 310 g->ops.pmu.reset(g);
311 pmu->isr_enabled = true; 311 pmu->isr_enabled = true;
312 nvgpu_mutex_release(&pmu->isr_mutex); 312 nvgpu_mutex_release(&pmu->isr_mutex);
313 313