]> Git Repo - linux.git/commitdiff
drm/nouveau/fan: fix a typo in PWM's input clock calculation
authorMartin Peres <[email protected]>
Sun, 7 Oct 2012 17:34:21 +0000 (19:34 +0200)
committerBen Skeggs <[email protected]>
Tue, 9 Oct 2012 03:55:15 +0000 (13:55 +1000)
Reported-by: Jukka Hopeavuori <[email protected]>
Signed-off-by: Martin Peres <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c

index f87a7a3eb4e7c4c55548aed7bf398b6a8be83bad..9360ddd469e727cae0f053dd1a0cd7e96c894283 100644 (file)
@@ -92,7 +92,7 @@ nv50_fan_pwm_clock(struct nouveau_therm *therm)
                if (nv_rd32(therm, 0xc040) & 0x800000) {
                        /* Use the HOST clock (100 MHz)
                        * Where does this constant(2.4) comes from? */
-                       pwm_clock = (100000000 >> pwm_div) / 10 / 24;
+                       pwm_clock = (100000000 >> pwm_div) * 10 / 24;
                } else {
                        /* Where does this constant(20) comes from? */
                        pwm_clock = (crystal * 1000) >> pwm_div;
This page took 0.058174 seconds and 4 git commands to generate.