[U-Boot] [RFC][Timer API] Revised Specification - Implementation details
Graeme Russ
graeme.russ at gmail.com
Fri May 27 09:33:39 CEST 2011
Hi Wolfgang,
On 27/05/11 17:17, Wolfgang Denk wrote:
> Dear Graeme Russ,
>
> In message <BANLkTi=Nj09smJ+tTuE4p=rWFz=r9GBhwQ at mail.gmail.com> you wrote:
>>
>> I think we should - If CONFIG_SYS_HZ _MUST_ be 1000 anyway, what is the
>> point. Also, get_timer() utilisation as it stands for the most part already
>> assumes a 1ms time base. Maybe we should change get_timer() to
>> get_ms_timer() to avoid any ambiguity
>
> No. At least not unless you also provide other get_<some unit>_timer()
> functions which we most likely will not do.
I think you will find most platforms will support get_us_timer() trivially.
Those that can't can use get_ms_timer() * 1000 (plus taking wrapping into
consideration)
Regards,
Graeme
More information about the U-Boot
mailing list