summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pstate
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r--drivers/gpu/nvgpu/pstate/pstate.c2
-rw-r--r--drivers/gpu/nvgpu/pstate/pstate.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c
index b9f82c72..512653ba 100644
--- a/drivers/gpu/nvgpu/pstate/pstate.c
+++ b/drivers/gpu/nvgpu/pstate/pstate.c
@@ -357,7 +357,7 @@ static int pstate_sw_setup(struct gk20a *g)
357 357
358 gk20a_dbg_fn(""); 358 gk20a_dbg_fn("");
359 359
360 init_waitqueue_head(&g->perf_pmu.pstatesobjs.pstate_notifier_wq); 360 nvgpu_cond_init(&g->perf_pmu.pstatesobjs.pstate_notifier_wq);
361 361
362 err = nvgpu_mutex_init(&g->perf_pmu.pstatesobjs.pstate_mutex); 362 err = nvgpu_mutex_init(&g->perf_pmu.pstatesobjs.pstate_mutex);
363 if (err) 363 if (err)
diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h
index 17dbd476..55726d55 100644
--- a/drivers/gpu/nvgpu/pstate/pstate.h
+++ b/drivers/gpu/nvgpu/pstate/pstate.h
@@ -58,7 +58,7 @@ struct pstate {
58struct pstates { 58struct pstates {
59 struct boardobjgrp_e32 super; 59 struct boardobjgrp_e32 super;
60 u32 num_levels; 60 u32 num_levels;
61 wait_queue_head_t pstate_notifier_wq; 61 struct nvgpu_cond pstate_notifier_wq;
62 u32 is_pstate_switch_on; 62 u32 is_pstate_switch_on;
63 struct nvgpu_mutex pstate_mutex; /* protect is_pstate_switch_on */ 63 struct nvgpu_mutex pstate_mutex; /* protect is_pstate_switch_on */
64}; 64};