diff options
author | cperciva <cperciva@FreeBSD.org> | 2010-11-22 09:04:29 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2010-11-22 09:04:29 +0000 |
commit | 775302a94a5ee0466093ff453c02ba80b5827cf3 (patch) | |
tree | fe5eed62a21b21278ea91e83b3c4657f401b806b /sys/i386/xen/clock.c | |
parent | 7da37ffc703907a49409489fcc502d759bb1c1f2 (diff) | |
download | FreeBSD-src-775302a94a5ee0466093ff453c02ba80b5827cf3.zip FreeBSD-src-775302a94a5ee0466093ff453c02ba80b5827cf3.tar.gz |
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.
Diffstat (limited to 'sys/i386/xen/clock.c')
-rw-r--r-- | sys/i386/xen/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |