Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [uClinux-dev] [PATCH] m68k: restore lost coldfire CLOCK_TICK_RATE | Date | Thu, 25 Jun 2009 13:30:09 +0200 |
| |
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 <><
| |