summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/include/asm/pvclock.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/include/asm/pvclock.h')
-rw-r--r--kernel/arch/x86/include/asm/pvclock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/arch/x86/include/asm/pvclock.h b/kernel/arch/x86/include/asm/pvclock.h
index 7a6bed5c0..baad72e4c 100644
--- a/kernel/arch/x86/include/asm/pvclock.h
+++ b/kernel/arch/x86/include/asm/pvclock.h
@@ -76,6 +76,8 @@ unsigned __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src,
u8 ret_flags;
version = src->version;
+ /* Make the latest version visible */
+ smp_rmb();
offset = pvclock_get_nsec_offset(src);
ret = src->system_time + offset;