Re: [uClinux-dev] [PATCH] m68k: restore lost coldfire CLOCK_TICK_RATE

From: Arnd Bergmann
Date: Thu Jun 25 2009 - 07:30:30 EST


On Thursday 25 June 2009, Greg Ungerer wrote:
> I thought it did that based on gettimeofday()? And that ends up
> going through the underlying timer code, which for both of
> the ColdFire timer types doesn't use CLOCK_TICK_RATE. They directly
> use the MCF_CLK definition.

The problem is the definition of TICK_NSEC, which is calculated from
CLOCK_TICK_RATE. If you use the i8253 PIT tick rate, this will be
slightly different from the regular TICK_NSEC value of (1000000000 / HZ).

Arnd <><
--
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/