diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index feb8cca8..dcb8464c 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * general p state infrastructure | 2 | * general p state infrastructure |
3 | * | 3 | * |
4 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -333,7 +333,7 @@ static int pstate_sw_setup(struct gk20a *g) | |||
333 | gk20a_dbg_fn(""); | 333 | gk20a_dbg_fn(""); |
334 | 334 | ||
335 | init_waitqueue_head(&g->perf_pmu.pstatesobjs.pstate_notifier_wq); | 335 | init_waitqueue_head(&g->perf_pmu.pstatesobjs.pstate_notifier_wq); |
336 | mutex_init(&g->perf_pmu.pstatesobjs.pstate_mutex); | 336 | nvgpu_mutex_init(&g->perf_pmu.pstatesobjs.pstate_mutex); |
337 | 337 | ||
338 | err = boardobjgrpconstruct_e32(&g->perf_pmu.pstatesobjs.super); | 338 | err = boardobjgrpconstruct_e32(&g->perf_pmu.pstatesobjs.super); |
339 | if (err) { | 339 | if (err) { |
diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h index af0956e8..22ba98b9 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.h +++ b/drivers/gpu/nvgpu/pstate/pstate.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * general p state infrastructure | 2 | * general p state infrastructure |
3 | * | 3 | * |
4 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -50,7 +50,7 @@ struct pstates { | |||
50 | u32 num_levels; | 50 | u32 num_levels; |
51 | wait_queue_head_t pstate_notifier_wq; | 51 | wait_queue_head_t pstate_notifier_wq; |
52 | u32 is_pstate_switch_on; | 52 | u32 is_pstate_switch_on; |
53 | struct mutex pstate_mutex; /* protect is_pstate_switch_on */ | 53 | struct nvgpu_mutex pstate_mutex; /* protect is_pstate_switch_on */ |
54 | }; | 54 | }; |
55 | 55 | ||
56 | int gk20a_init_pstate_support(struct gk20a *g); | 56 | int gk20a_init_pstate_support(struct gk20a *g); |