summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-05-08 04:45:39 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:48 -0400
commita82f92e318005f1e42f803aec054ee3714f780f9 (patch)
treec21af89824fdae365c3b4e30ea49ccb038223949 /drivers/gpu/nvgpu/gk20a/gk20a.c
parentcaae9bfd241f0592b68e127f583d74280f8cb353 (diff)
gpu: nvgpu: Do not clear PMU state on rail gate
When rail gating, we cleared all PMU status. Clear only the relevant fields. Change-Id: I5b4e8d74339aae6f1c6b945f45b8378bb563e8be Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/406843
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 78e33a49..96711c0c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -609,8 +609,9 @@ static void gk20a_remove_support(struct platform_device *dev)
609{ 609{
610 struct gk20a *g = get_gk20a(dev); 610 struct gk20a *g = get_gk20a(dev);
611 611
612 /* pmu support should already be removed when driver turns off 612 if (g->pmu.remove_support)
613 gpu power rail in prepapre_poweroff */ 613 g->pmu.remove_support(&g->pmu);
614
614 if (g->gk20a_cdev.gk20a_cooling_dev) 615 if (g->gk20a_cdev.gk20a_cooling_dev)
615 thermal_cooling_device_unregister(g->gk20a_cdev.gk20a_cooling_dev); 616 thermal_cooling_device_unregister(g->gk20a_cdev.gk20a_cooling_dev);
616 617