The comment in xen.h on how to obtain current system time was missing

a right shift by 32 bits.

Signed-Off-By: Bruce Rogers <brogers@novell.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-13 10:41:53 +01:00
1 parent a94a960c97
commit 6d847cf8cb
1 file changed
+2 -1
+2 -1
View File
@@ -286,7 +286,8 @@ typedef struct vcpu_time_info {
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
*/
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.