summaryrefslogtreecommitdiff
path: root/lib_mips/time.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-17 18:55:18 +0000
committerwdenk <wdenk>2003-08-17 18:55:18 +0000
commite0ac62d798ce60ec5d43125d4786e58b0d881836 (patch)
tree3f32c8f29ff9089ef61099b11d81d51039bf2162 /lib_mips/time.c
parentae3af05ec986a8ac66dadb5eafe13db2d4a02c5c (diff)
* Make Ethernet autonegotiation on INCA-IP work for all clock rates;U-Boot-0_4_6
allow selection of clock frequency as "make" target * Implement memory autosizing code for IceCube boards * Configure network port on INCA-IP for autonegotiation * Fix overflow problem in network timeout code * Patch by Richard Woodruff, 8 Aug 2003: Allow crc32 to be used at address 0x000 (crc32_no_comp, too).
Diffstat (limited to 'lib_mips/time.c')
-rw-r--r--lib_mips/time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib_mips/time.c b/lib_mips/time.c
index 0cb733cb06a..cd8dc721e2b 100644
--- 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*/;
}