From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Sat, 27 Feb 2010 17:41:26 -0600 Subject: [U-Boot] [PATCH] ep93xx timer: Fix get_ticks() and usecs_to_ticks() In-Reply-To: <20100226172637.GK3628@darwin> References: <20100226172637.GK3628@darwin> Message-ID: <4B89ADA6.8020304@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Alessandro Rubini > Please rebase. I applied the earlier version. I think these changes should be a much smaller patch. Tom