drm/nv40/therm: fix slowing down fan when pstate undefined
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
b9d9dcdaae
commit
09dacc7bb0
|
@ -117,6 +117,7 @@ nouveau_therm_update(struct nouveau_therm *therm, int mode)
|
||||||
priv->fan->bios.linear_max_temp) {
|
priv->fan->bios.linear_max_temp) {
|
||||||
duty = nouveau_therm_update_linear(therm);
|
duty = nouveau_therm_update_linear(therm);
|
||||||
} else {
|
} else {
|
||||||
|
if (priv->cstate)
|
||||||
duty = priv->cstate;
|
duty = priv->cstate;
|
||||||
poll = false;
|
poll = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue