diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-03-15 08:16:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-30 15:36:26 -0400 |
commit | 8aa218e0ec54bfca3ad6d6d67a3b936c56335644 (patch) | |
tree | a7275093afd27149ec4f0d052cad9f5bd4176750 /drivers/gpu/nvgpu/pstate/pstate.h | |
parent | 6c3370a588108ba920c952d63699670905e16449 (diff) |
gpu: nvgpu: check return value of mutex_init in pstate.c
- check return value of nvgpu_mutex_init in pstate.c
- add new callback gk20a_deinit_pstate_support() to
deinitialize pstate support
- add corresponding nvgpu_mutex_destroy calls
Jira NVGPU-13
Change-Id: I206bf2324e8fe95f4ed52c29ac5d8981327632b2
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1321296
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pstate/pstate.h')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h index 22ba98b9..406f4226 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.h +++ b/drivers/gpu/nvgpu/pstate/pstate.h | |||
@@ -54,6 +54,7 @@ struct pstates { | |||
54 | }; | 54 | }; |
55 | 55 | ||
56 | int gk20a_init_pstate_support(struct gk20a *g); | 56 | int gk20a_init_pstate_support(struct gk20a *g); |
57 | void gk20a_deinit_pstate_support(struct gk20a *g); | ||
57 | int gk20a_init_pstate_pmu_support(struct gk20a *g); | 58 | int gk20a_init_pstate_pmu_support(struct gk20a *g); |
58 | 59 | ||
59 | struct clk_set_info *pstate_get_clk_set_info(struct gk20a *g, u32 pstate_num, | 60 | struct clk_set_info *pstate_get_clk_set_info(struct gk20a *g, u32 pstate_num, |