From: David van Moolenbroek Date: Fri, 8 Apr 2011 16:57:44 +0000 (+0000) Subject: libsys: fix micro_delay() X-Git-Tag: v3.2.0~583 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/mdoc.3.ps?a=commitdiff_plain;h=c4928b2df92b50462bbefe38393359819a65a9be;p=minix.git libsys: fix micro_delay() --- diff --git a/lib/libsys/tsc_util.c b/lib/libsys/tsc_util.c index 545991c9b..4c08e480a 100644 --- a/lib/libsys/tsc_util.c +++ b/lib/libsys/tsc_util.c @@ -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