[U-Boot] [RFC] Review of U-Boot timer API

Wolfgang Denk wd at denx.de
Wed May 25 13:32:32 CEST 2011


Dear Graeme Russ,

In message <4DDCBD3D.4080409 at gmail.com> you wrote:
>
> > I see two options:
> > 
> > 1) either we can have some signal when the timer wrapes around (like
> >    an interrupt); in this case it does not matter how big the counter
> >    itself is, we just increment our own local 64 bit timestamp.
> > 
> > 2) Alternatively, I could imagine we use a 64 bit container plus a
> >    mask which specifiec how many bits are actually used - then we can 
> >    accommodate counters with any numbers of valid bits.
> > 
> 
> 3) Keep calling get_timer() (which you do when checking protocol time-outs)
> - This keeps kicking the prescaler

We cannot guarantee for this, so this is not really an option.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A door is what a dog is perpetually on the wrong side of.
                                                        - Ogden Nash


More information about the U-Boot mailing list