diff options
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; |