[U-Boot] [PATCH] ep93xx timer: Fix get_ticks() and usecs_to_ticks()

Tom Tom.Rix at windriver.com
Sun Feb 28 00:41:26 CET 2010


Matthias Kaehlcke wrote:
> ep93xx timer: Make get_ticks() consistent with get_tbclk(), returning
> a value with CONFIG_SYS_HZ resolution. This fix obsoletes the function
> clk_to_systicks(), leading to a simplification of the timer code. Further
> a variable in usecs_to_ticks() is promoted to a 64-bit value, to avoid
> overflows of intermediate values.
> 
> Signed-off-by: Matthias Kaehlcke <matthias at kaehlcke.net>
> Tested-by: Alessandro Rubini <rubini-list at gnudd.com>
> 
Please rebase.
I applied the earlier version.
I think these changes should be a much smaller patch.
Tom



More information about the U-Boot mailing list