Re: Problem with clock on Beige G3
On Tue, 2005-10-04 at 11:19 +0200, Sylvain Joyeux wrote:
> The clock on my beige G3 drifts a lot (something like 30 min every hour if
> the system clock is uncorrected).
> I thought it was somewhat related to the RTC battery being dead, but I
> changed it and it did not fix the problem.
> The only clue I could think of is a too high HZ (it is at 250).
> Unfortunately, the USB-ADSL driver I use does not seem to behave properly
> if HZ = 100...
Does this patch fixes it ?
--- linux-work.orig/arch/ppc/platforms/pmac_time.c 2005-09-22 14:06:18.000000000 +1000
+++ linux-work/arch/ppc/platforms/pmac_time.c 2005-10-05 08:14:17.000000000 +1000
@@ -195,7 +195,7 @@
dend = get_dec();
- tb_ticks_per_jiffy = (dstart - dend) / (6 * (HZ/100));
+ tb_ticks_per_jiffy = (dstart - dend) / ((6 * HZ)/100);
tb_to_us = mulhwu_scale_factor(dstart - dend, 60000);
printk(KERN_INFO "via_calibrate_decr: ticks per jiffy = %u (%u ticks)\n",