x86: kvm: Make kvm_get_time_and_clockread() nanoseconds based
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:54 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:46 +0000 (15:01 -0700)
commitcbcf2dd3b3d4d990610259e8d878fc8dc1f17d80
tree56a7086ddb4b6af2df797a2ad94581d258e42d16
parentbb0b58127c5add364cb597d58b1cf66eb279eae8
x86: kvm: Make kvm_get_time_and_clockread() nanoseconds based

Convert the relevant base data right away to nanoseconds instead of
doing the conversion on every readout. Reduces text size by 160 bytes.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/x86/kvm/x86.c