From 775302a94a5ee0466093ff453c02ba80b5827cf3 Mon Sep 17 00:00:00 2001 From: cperciva Date: Mon, 22 Nov 2010 09:04:29 +0000 Subject: 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. --- sys/i386/xen/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/i386/xen/clock.c') diff --git a/sys/i386/xen/clock.c b/sys/i386/xen/clock.c index 09ed7c3..2f7046e 100644 --- a/sys/i386/xen/clock.c +++ b/sys/i386/xen/clock.c @@ -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); } -- cgit v1.1