summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-11-13 15:52:03 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-11-14 14:57:01 +1000
commit09dacc7bb0c2f32427d926844fca7d5fecec005c (patch)
treedff7390b98b07081b3e33768fcb83afb6b1b93a4
parentb9d9dcdaae4a9284ba3484c528f44a9db18faabf (diff)
downloadop-kernel-dev-09dacc7bb0c2f32427d926844fca7d5fecec005c.zip
op-kernel-dev-09dacc7bb0c2f32427d926844fca7d5fecec005c.tar.gz
drm/nv40/therm: fix slowing down fan when pstate undefined
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/therm/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/base.c b/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
index 21b2b30..80e584a 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
@@ -117,7 +117,8 @@ nouveau_therm_update(struct nouveau_therm *therm, int mode)
priv->fan->bios.linear_max_temp) {
duty = nouveau_therm_update_linear(therm);
} else {
- duty = priv->cstate;
+ if (priv->cstate)
+ duty = priv->cstate;
poll = false;
}
immd = false;
OpenPOWER on IntegriCloud