diff options
author | Martin Peres <martin.peres@labri.fr> | 2012-10-07 13:34:21 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-08 23:55:15 -0400 |
commit | bbebb4ebc86e723a2c38c651dbfe54017333d307 (patch) | |
tree | 80327e16cebaa147c39c642e99a59f4f6d0c1d86 /drivers/gpu | |
parent | b47f1421ad2946b71b32e613d161a8ee43d2d019 (diff) |
drm/nouveau/fan: fix a typo in PWM's input clock calculation
Reported-by: Jukka Hopeavuori <jukka.hopea@gmail.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c index f87a7a3eb4e7..9360ddd469e7 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c | |||
@@ -92,7 +92,7 @@ nv50_fan_pwm_clock(struct nouveau_therm *therm) | |||
92 | if (nv_rd32(therm, 0xc040) & 0x800000) { | 92 | if (nv_rd32(therm, 0xc040) & 0x800000) { |
93 | /* Use the HOST clock (100 MHz) | 93 | /* Use the HOST clock (100 MHz) |
94 | * Where does this constant(2.4) comes from? */ | 94 | * Where does this constant(2.4) comes from? */ |
95 | pwm_clock = (100000000 >> pwm_div) / 10 / 24; | 95 | pwm_clock = (100000000 >> pwm_div) * 10 / 24; |
96 | } else { | 96 | } else { |
97 | /* Where does this constant(20) comes from? */ | 97 | /* Where does this constant(20) comes from? */ |
98 | pwm_clock = (crystal * 1000) >> pwm_div; | 98 | pwm_clock = (crystal * 1000) >> pwm_div; |