Skip to content
  • Pavel Machek's avatar
    lib/time.c cleanups · fccacd3b
    Pavel Machek authored
    
    
    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>
    fccacd3b