RE: clock skew on B/W G3
From: Rune Torgersen <hidden>
Date: 2005-10-04 19:22:36
Also in:
lkml
From: Rune Torgersen <hidden>
Date: 2005-10-04 19:22:36
Also in:
lkml
=20
From: George Anzinger [mailto:george@mvista.com]=20 But this is defined in include/asm/???.h so you should be=20 able to set something more to your liking=20 (or rather to your archs liking). It is true that it SHOULD=20 be defined as it is used to define=20 TICK_NSEC which is used to define the=20 jiffies<-->timeval/timespec conversions which would be VERY=20 slow it it were a variable.
Just make them variables, and compute them ONCE during boot.
ppc calls calibrate_decr() before enabling the timer interrupt anyways.
time_nsec is easy.=20
in a platfrom specific file do (very simplified):
extern unsigned long time_nsec;
void platform_specific_calibrate_decr()
{
time_nsec =3D REAL_TIME_NSEC;
}
This (of course) will do nothing about LATCH and ACTHZ that might be
used other places.