OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9d9dcd
)
drm/nv40/therm: fix slowing down fan when pstate undefined
author
Ben Skeggs
<bskeggs@redhat.com>
Wed, 13 Nov 2013 05:52:03 +0000
(15:52 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 14 Nov 2013 04:57:01 +0000
(14:57 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
patch
|
blob
|
history
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
(file)
--- 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;