]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/time.c cleanups
authorPavel Machek <pavel@denx.de>
Sun, 13 Jul 2014 11:14:27 +0000 (13:14 +0200)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:26 +0000 (07:44 -0400)
commitfccacd3b4cffb5b3d50fe5e68ceb3604138041df
tree84fecdb17b2bacfd33519d0cbbbd8c1fb5ae4d1e
parent288afdc9b97f00fa8422ea065e135f8423441cd7
lib/time.c cleanups

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 <pavel@denx.de>
lib/time.c