commit | fccacd3b4cffb5b3d50fe5e68ceb3604138041df | [log] [tgz] |
---|---|---|
author | Pavel Machek <pavel@denx.de> | Sun Jul 13 13:14:27 2014 +0200 |
committer | Tom Rini <trini@ti.com> | Tue Jul 22 07:44:26 2014 -0400 |
tree | 84fecdb17b2bacfd33519d0cbbbd8c1fb5ae4d1e | |
parent | 288afdc9b97f00fa8422ea065e135f8423441cd7 [diff] |
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>