On 20/09/11 21:28, Wolfgang Denk wrote: > Dear Graeme Russ, > > In message <4e786eba.5040...@gmail.com> you wrote: >> >> You'll laugh at this - the Intel High Performance Event Timers (HPET) are >> defined to a resolution of femto-seconds and you end up with code in >> get_timer() like: > > I have to admit that I have never been able to laugh about x86 design > issues. But then, Intel told us the Pentium would have "RISK" > features...
*ROFL* Well actually, it's not really an x86 thing - Any architecture could implement HPET. Using femto-seconds as the time-base and defining a 'tick' as a number of femto-seconds makes a lot of sense - It allows preservation of timer accuracy through the comparators so interrupts can be generated with extreme precision while actually allowing the source clock to be pretty much any frequency. They were, after all, designed for multi-media applications to solve the horrendous sub-ms accuracy issue with the older programmable timers Regards, Graeme _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot