summaryrefslogtreecommitdiff
path: root/src/aticonfig.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-02-07 18:02:17 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2008-02-07 18:02:17 +0200
commitdce4cc26a8e2bf53805ec63763243f3ff6b4a6d3 (patch)
treedf5e6c8d389572e1dff9939e9ce0234988540a69 /src/aticonfig.c
parentf7ed807f0d82a7446ebc4acdd4e94df44a675f19 (diff)
mach64: consolidate refclk #1
Diffstat (limited to 'src/aticonfig.c')
-rw-r--r--src/aticonfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/aticonfig.c b/src/aticonfig.c
index 1e119e0..837720f 100644
--- a/src/aticonfig.c
+++ b/src/aticonfig.c
@@ -471,10 +471,12 @@ ATIProcessOptions
pATI->Cursor = ATI_CURSOR_HARDWARE;
}
+ pATI->refclk = (int)ReferenceClock;
+
/* Only set the reference clock if it hasn't already been determined */
if (!pATI->ReferenceNumerator || !pATI->ReferenceDenominator)
{
- switch ((int)(ReferenceClock / ((double)100000.0)))
+ switch (pATI->refclk / 100000)
{
case 143:
pATI->ReferenceNumerator = 157500;
@@ -487,8 +489,7 @@ ATIProcessOptions
break;
default:
- pATI->ReferenceNumerator =
- (int)(ReferenceClock / ((double)1000.0));
+ pATI->ReferenceNumerator = pATI->refclk / 1000;
pATI->ReferenceDenominator = 1;
break;
}