KVM: x86: remaster kvm_write_tsc code
authorDenis Plotnikov <dplotnikov@virtuozzo.com>
Fri, 7 Apr 2017 09:09:52 +0000 (12:09 +0300)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Apr 2017 18:17:15 +0000 (20:17 +0200)
commitc5e8ec8e9beffb9481dba27ab5048c03c8585d7d
tree05586fdc5b1af75fd56476339aff0c12f3345aa7
parent900ab14ca93dce3f95fdb2bd9c4b654d4d5f2571
KVM: x86: remaster kvm_write_tsc code

Reuse existing code instead of using inline asm.
Make the code more concise and clear in the TSC
synchronization part.

Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c