mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +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
@ -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…
x
Reference in New Issue
Block a user