diff options
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr')
-rw-r--r-- | drivers/gpu/nvgpu/lpwr/lpwr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c index 9636891b..b722a900 100644 --- a/drivers/gpu/nvgpu/lpwr/lpwr.c +++ b/drivers/gpu/nvgpu/lpwr/lpwr.c | |||
@@ -346,7 +346,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) | |||
346 | 346 | ||
347 | if (pstate_lock) | 347 | if (pstate_lock) |
348 | nvgpu_clk_arb_pstate_change_lock(g, true); | 348 | nvgpu_clk_arb_pstate_change_lock(g, true); |
349 | mutex_lock(&pmu->pg_mutex); | 349 | nvgpu_mutex_acquire(&pmu->pg_mutex); |
350 | 350 | ||
351 | present_pstate = nvgpu_clk_arb_get_current_pstate(g); | 351 | present_pstate = nvgpu_clk_arb_get_current_pstate(g); |
352 | 352 | ||
@@ -367,7 +367,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) | |||
367 | status = gk20a_pmu_enable_elpg(g); | 367 | status = gk20a_pmu_enable_elpg(g); |
368 | } | 368 | } |
369 | 369 | ||
370 | mutex_unlock(&pmu->pg_mutex); | 370 | nvgpu_mutex_release(&pmu->pg_mutex); |
371 | if (pstate_lock) | 371 | if (pstate_lock) |
372 | nvgpu_clk_arb_pstate_change_lock(g, false); | 372 | nvgpu_clk_arb_pstate_change_lock(g, false); |
373 | 373 | ||
@@ -386,7 +386,7 @@ int nvgpu_lpwr_disable_pg(struct gk20a *g, bool pstate_lock) | |||
386 | 386 | ||
387 | if (pstate_lock) | 387 | if (pstate_lock) |
388 | nvgpu_clk_arb_pstate_change_lock(g, true); | 388 | nvgpu_clk_arb_pstate_change_lock(g, true); |
389 | mutex_lock(&pmu->pg_mutex); | 389 | nvgpu_mutex_acquire(&pmu->pg_mutex); |
390 | 390 | ||
391 | present_pstate = nvgpu_clk_arb_get_current_pstate(g); | 391 | present_pstate = nvgpu_clk_arb_get_current_pstate(g); |
392 | 392 | ||
@@ -411,7 +411,7 @@ int nvgpu_lpwr_disable_pg(struct gk20a *g, bool pstate_lock) | |||
411 | } | 411 | } |
412 | 412 | ||
413 | exit_unlock: | 413 | exit_unlock: |
414 | mutex_unlock(&pmu->pg_mutex); | 414 | nvgpu_mutex_release(&pmu->pg_mutex); |
415 | if (pstate_lock) | 415 | if (pstate_lock) |
416 | nvgpu_clk_arb_pstate_change_lock(g, false); | 416 | nvgpu_clk_arb_pstate_change_lock(g, false); |
417 | 417 | ||