Skip to content
Snippets Groups Projects
Commit fccacd3b authored by Pavel Machek's avatar Pavel Machek Committed by Tom Rini
Browse files

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: default avatarPavel Machek <pavel@denx.de>
parent 288afdc9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment