RE: clock skew on B/W G3

From: Rune Torgersen
Date: Tue Oct 04 2005 - 14:23:00 EST




> From: George Anzinger [mailto:george@xxxxxxxxxx]
> But this is defined in include/asm/???.h so you should be
> able to set something more to your liking
> (or rather to your archs liking). It is true that it SHOULD
> be defined as it is used to define
> TICK_NSEC which is used to define the
> jiffies<-->timeval/timespec conversions which would be VERY
> 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.
in a platfrom specific file do (very simplified):

extern unsigned long time_nsec;

void platform_specific_calibrate_decr()
{
time_nsec = REAL_TIME_NSEC;
}

This (of course) will do nothing about LATCH and ACTHZ that might be
used other places.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/