projects
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Make Ethernet autonegotiation on INCA-IP work for all clock rates;
[kernel/u-boot.git]
/
lib_mips
/
time.c
diff --git
a/lib_mips/time.c
b/lib_mips/time.c
index
0cb733c
..
cd8dc72
100644
(file)
--- a/
lib_mips/time.c
+++ b/
lib_mips/time.c
@@
-75,9
+75,7
@@
void udelay (unsigned long usec)
ulong tmo;
ulong start = get_timer(0);
- tmo = usec * CFG_HZ / 1000;
- tmo /= 1000;
-
+ tmo = usec * (CFG_HZ / 1000000);
while ((ulong)((mips_count_get() - start)) < tmo)
/*NOP*/;
}