]> git.hungrycats.org Git - linux/commitdiff
Fix new radeon clock calculation.
authorLinus Torvalds <torvalds@evo.osdl.org>
Sun, 15 Feb 2004 06:25:38 +0000 (22:25 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 15 Feb 2004 06:25:38 +0000 (22:25 -0800)
From Peter Osterlund <petero2@telia.com>

This code only ends up being used when all else fails,
so probably very few people actually ever saw this.

drivers/video/aty/radeon_base.c

index f1146393de463641da4b5b2c90da4aa67cbfcfa6..5bcd07878a461fd747a0d71bb0ea0329e195da7d 100644 (file)
@@ -566,8 +566,9 @@ static int __devinit radeon_probe_pll_params(struct radeonfb_info *rinfo)
                break;
        }
 
-       do_div(vclk, 1000);
-       xtal = (xtal * denom) / num;
+       vclk *= denom;
+       do_div(vclk, 1000 * num);
+       xtal = vclk;
 
        if ((xtal > 26900) && (xtal < 27100))
                xtal = 2700;