Skip to contentSkip to conversation

Fix comment on how to obtain current system time

PATCH Bruce Rogers 1 participant 1 message Apr 12, 2006

lore
Share & tools
lore
#0 lore raw

The comment in xen.h on how to obtain current system time was missing the 32 bit right shift.This patch updates that comment.Signed-Off-By:
Bruce Rogers <[email protected]>

xen/include/public/xen.h +2 -1
diff -r edefe24d78bd xen/include/public/xen.h
@@ -286,7 +286,8 @@
     uint64_t system_time;     /* Time, in nanosecs, since boot.    */
     /*
      * Current system time:
-     *   system_time + ((tsc - tsc_timestamp) << tsc_shift) * tsc_to_system_mul
+     *   system_time + 
+     *   (((tsc - tsc_timestamp) << tsc_shift) * tsc_to_system_mul) >> 32)
      * CPU frequency (Hz):
      *   ((10^9 << 32) / tsc_to_system_mul) >> tsc_shift
      */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel