mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
drm/nv40/pm: fix fanspeed regression
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
e6084257d0
commit
8b83d67c2e
1 changed files with 4 additions and 0 deletions
|
@ -300,6 +300,10 @@ nouveau_perf_init(struct drm_device *dev)
|
|||
return;
|
||||
}
|
||||
|
||||
perf = nouveau_perf_table(dev, &ver);
|
||||
if (ver >= 0x20 && ver < 0x40)
|
||||
pm->fan.pwm_divisor = ROM16(perf[6]);
|
||||
|
||||
while ((perf = nouveau_perf_entry(dev, ++i, &ver, &hdr, &cnt, &len))) {
|
||||
struct nouveau_pm_level *perflvl = &pm->perflvl[pm->nr_perflvl];
|
||||
|
||||
|
|
Loading…
Reference in a new issue