svn commit: r215663 - head/sys/i386/xen
Colin Percival
cperciva at FreeBSD.org
Mon Nov 22 09:04:29 UTC 2010
Author: cperciva
Date: Mon Nov 22 09:04:29 2010
New Revision: 215663
URL: http://svn.freebsd.org/changeset/base/215663
Log:
In xen_get_timecount, return the full ns-precision time rather than
rounding to 1/HZ precision.
I have no idea why the rounding was introduced in the first place, but
it makes FreeBSD unhappy.
Modified:
head/sys/i386/xen/clock.c
Modified: head/sys/i386/xen/clock.c
==============================================================================
--- head/sys/i386/xen/clock.c Mon Nov 22 08:35:06 2010 (r215662)
+++ head/sys/i386/xen/clock.c Mon Nov 22 09:04:29 2010 (r215663)
@@ -829,7 +829,7 @@ xen_get_timecount(struct timecounter *tc
clk = shadow->system_timestamp + get_nsec_offset(shadow);
- return (uint32_t)((clk / NS_PER_TICK) * NS_PER_TICK);
+ return (uint32_t)(clk);
}
More information about the svn-src-all
mailing list