[U-Boot] [PATCH] arm: add 64-64 bit divider

Graeme Russ graeme.russ at gmail.com
Tue Sep 20 13:40:19 CEST 2011


On 20/09/11 21:28, Wolfgang Denk wrote:
> Dear Graeme Russ,
> 
> In message <4E786EBA.5040805 at 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


More information about the U-Boot mailing list