Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 09:04:29 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215663 - head/sys/i386/xen
Message-ID:  <201011220904.oAM94TWf084165@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011220904.oAM94TWf084165>