[U-Boot] [PATCH] ppc: Increase precision of ticks2usec

Wolfgang Denk wd at denx.de
Sun Mar 8 23:46:43 CET 2009

Dear Benoit Monin,

In message <9454366.19868.1236182927234.JavaMail.www at wwinf8202> you wrote:
> The tick of some PowerPC cpu is running at high frequency and
> it can be used to get microsecond precision from it. Make use
> of div64 to achieve this precision in ticks2usec.

Which problem are you trying to fix?

Where exactly do we need very high accuracy?

What is the overhead of using do_div() versus the old, simple code?

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
On the subject of C program indentation: "In My Egotistical  Opinion,
most  people's  C  programs  should be indented six feet downward and
covered with dirt."                               - Blair P. Houghton

More information about the U-Boot mailing list