]> Zhao Yanbai Git Server - minix.git/commitdiff
libsys: fix micro_delay()
authorDavid van Moolenbroek <david@minix3.org>
Fri, 8 Apr 2011 16:57:44 +0000 (16:57 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 8 Apr 2011 16:57:44 +0000 (16:57 +0000)
lib/libsys/tsc_util.c

index 545991c9b9bec4dac58c4bb37ed75d73f5ff006e..4c08e480a22c98be9342c7bdacefed4c15b78908 100644 (file)
@@ -62,7 +62,7 @@ micro_delay(u32_t micros)
        CALIBRATE;
 
        /* We have to know when to end the delay. */
-       end = add64(now, mul64u(micros, calib_mhz * 1000));
+       end = add64(now, mul64u(micros, calib_mhz));
 
        /* If we have to wait for at least one HZ tick, use the regular
         * tickdelay first. Round downwards on purpose, so the average