]> git.neil.brown.name Git - history.git/commitdiff
ppc32: Fix time calibration on some G4 models
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 6 Feb 2004 03:32:38 +0000 (14:32 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 6 Feb 2004 03:32:38 +0000 (14:32 +1100)
arch/ppc/platforms/pmac_time.c

index 923afbdc7c563fb623474e48ab4d61dd39d74fd1..cd8e3e7c4d13e0edeb5aab806eb485fde860d48a 100644 (file)
@@ -266,6 +266,14 @@ pmac_calibrate_decr(void)
                if (via_calibrate_decr())
                        return;
 
+       /* Special case: QuickSilver G4s seem to have a badly calibrated
+        * timebase-frequency in OF, VIA is much better on these. We should
+        * probably implement calibration based on the KL timer on these
+        * machines anyway... -BenH
+        */
+       if (machine_is_compatible("PowerMac3,5"))
+               if (via_calibrate_decr())
+                       return;
        /*
         * The cpu node should have a timebase-frequency property
         * to tell us the rate at which the decrementer counts.