drm/nv40/therm: fix slowing down fan when pstate undefined
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -117,7 +117,8 @@ 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 {
|
||||||
duty = priv->cstate;
|
if (priv->cstate)
|
||||||
|
duty = priv->cstate;
|
||||||
poll = false;
|
poll = false;
|
||||||
}
|
}
|
||||||
immd = false;
|
immd = false;
|
||||||
|
Reference in New Issue
Block a user