X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib_mips%2Ftime.c;h=cd8dc721e2b797a8a50c621421b68d8af8d79d97;hb=e0ac62d798ce60ec5d43125d4786e58b0d881836;hp=0cb733cb06a836767871334175aaea7b5eaaf532;hpb=8bde7f776c77b343aca29b8c7b58464d915ac245;p=kernel%2Fu-boot.git diff --git a/lib_mips/time.c b/lib_mips/time.c index 0cb733c..cd8dc72 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*/; }