Re: clock skew on B/W G3
From: Marc <marvin24@gmx.de>
Date: 2005-10-05 06:34:40
Also in:
lkml
Hi Ben,=20 Le Mittwoch 05 Oktober 2005 00:14, Benjamin Herrenschmidt a =C3=A9crit :
The problem is indeed in via_calibrate_decr(). This routine works on HZ/100 so it will not do any good with HZ not beeing a multiple of 100. Can you test this patch ?
I can confirm that this patch solves the timer skew on my mac. Thanks!
Index: linux-work/arch/ppc/platforms/pmac_time.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
quoted hunk ↗ jump to hunk
--- linux-work.orig/arch/ppc/platforms/pmac_time.c 2005-09-2214: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 =3D get_dec(); - tb_ticks_per_jiffy =3D (dstart - dend) / (6 * (HZ/100)); + tb_ticks_per_jiffy =3D (dstart - dend) / ((6 * HZ)/100); tb_to_us =3D mulhwu_scale_factor(dstart - dend, 60000); printk(KERN_INFO "via_calibrate_decr: ticks per jiffy =3D %u (%u ticks)=
\n",
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/