Signed-off-by: Denis Plotnikov <dplotnikov@xxxxxxxxxxxxx> --- arch/x86/kernel/pvclock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/pvclock.c b/arch/x86/kernel/pvclock.c index 1a0d86a..ab54c92 100644 --- a/arch/x86/kernel/pvclock.c +++ b/arch/x86/kernel/pvclock.c @@ -82,8 +82,12 @@ u64 pvclock_clocksource_read(struct pvclock_vcpu_time_info *src, u8 flags; do { + u64 tsc; version = pvclock_read_begin(src); - ret = __pvclock_read_cycles(src, rdtsc_ordered()); + tsc = rdtsc_ordered(); + ret = __pvclock_read_cycles(src, tsc); + if (cycles_stamp) + *cycles_stamp = tsc; flags = src->flags; } while (pvclock_read_retry(src, version)); -- 2.7.4