Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@evo.osdl.org>2004-02-14 22:25:38 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-14 22:25:38 -0800
commita60e227b45c75f90efd943bb5a4d7f719bc28015 (patch)
tree8e352ce0a190d933892d3b949effa11bd6fe935c
parent5dc2eddbd67973a9da0a340fba9b14a39009978a (diff)
Fix new radeon clock calculation.
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.
-rw-r--r--drivers/video/aty/radeon_base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c
index f1146393de46..5bcd07878a46 100644
--- a/drivers/video/aty/radeon_base.c
+++ b/drivers/video/aty/radeon_base.c
@@ -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;