forked from luck/tmp_suning_uos_patched
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,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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user