diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-11-13 05:52:03 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-11-14 04:57:01 (GMT) |
commit | 09dacc7bb0c2f32427d926844fca7d5fecec005c (patch) | |
tree | dff7390b98b07081b3e33768fcb83afb6b1b93a4 | |
parent | b9d9dcdaae4a9284ba3484c528f44a9db18faabf (diff) | |
download | linux-fsl-qoriq-09dacc7bb0c2f32427d926844fca7d5fecec005c.tar.xz |
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.c | 3 |
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; |