From: Tom Rini Date: Tue, 22 Jul 2014 15:23:00 -0400 Subject: [U-Boot] lib/time.c cleanups In-Reply-To: <20140713111427.GA20845@amd.pavel.ucw.cz> References: <20140713111427.GA20845@amd.pavel.ucw.cz> Message-ID: <20140722192300.GI1847@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jul 13, 2014 at 01:14:27PM +0200, Pavel Machek wrote: > As I initially suspected overflow in time handling, I took a detailed > look at lib/time.c. This adds comments about units being used, reduces > amount of type casting being done, and makes __udelay() always wait at > least one tick. (Current code could do no delaying at all for short > delays). > > Signed-off-by: Pavel Machek Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: