From 8aa218e0ec54bfca3ad6d6d67a3b936c56335644 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 15 Mar 2017 17:46:07 +0530 Subject: 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 Reviewed-on: http://git-master/r/1321296 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a') 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) if (g->ops.clk.suspend_clk_support) ret |= g->ops.clk.suspend_clk_support(g); +#ifdef CONFIG_ARCH_TEGRA_18x_SOC + if (g->ops.pmupstate) + gk20a_deinit_pstate_support(g); +#endif g->power_on = false; /* Decrement platform power refcount */ -- cgit v1.2.2