]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: remove useless write to vcpu->hv_clock.tsc_timestamp
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 17:07:31 +0000 (18:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jan 2014 17:08:25 +0000 (18:08 +0100)
commit308b4c2bb0842207990fd610d9882ba4c0505323
treea2bf2f03c1226e48ed7ad73b5eb01aa1c21d9972
parent6bf05d2891878aa563aff734f8622e730bcee846
KVM: remove useless write to vcpu->hv_clock.tsc_timestamp

After the previous patch from Marcelo, the comment before this write
became obsolete.  In fact, the write is unnecessary.  The calls to
kvm_write_tsc ultimately result in a master clock update as soon as
all TSCs agree and the master clock is re-enabled.  This master
clock update will rewrite tsc_timestamp.

So, together with the comment, delete the dead write too.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c