summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-03-15 08:16:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-30 15:36:26 -0400
commit8aa218e0ec54bfca3ad6d6d67a3b936c56335644 (patch)
treea7275093afd27149ec4f0d052cad9f5bd4176750 /drivers/gpu/nvgpu/gk20a
parent6c3370a588108ba920c952d63699670905e16449 (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/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index aae3072a..060429d1 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -459,6 +459,10 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
459 if (g->ops.clk.suspend_clk_support) 459 if (g->ops.clk.suspend_clk_support)
460 ret |= g->ops.clk.suspend_clk_support(g); 460 ret |= g->ops.clk.suspend_clk_support(g);
461 461
462#ifdef CONFIG_ARCH_TEGRA_18x_SOC
463 if (g->ops.pmupstate)
464 gk20a_deinit_pstate_support(g);
465#endif
462 g->power_on = false; 466 g->power_on = false;
463 467
464 /* Decrement platform power refcount */ 468 /* Decrement platform power refcount */