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);
 
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to