aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:04:52 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 18:01:45 -0400
commitbb0b58127c5add364cb597d58b1cf66eb279eae8 (patch)
tree5c4be236de033598f82f7cb1790976606f58529c
parent41fa4215f8e8150bdc5d2a5f8704915f1b059fa8 (diff)
x86: kvm: Use ktime_get_boot_ns()
Use the new nanoseconds based interface and get rid of the timespec conversion dance. 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>
-rw-r--r--arch/x86/kvm/x86.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f6449334ec45..65c430512132 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1109,11 +1109,7 @@ static void kvm_get_time_scale(uint32_t scaled_khz, uint32_t base_khz,
1109 1109
1110static inline u64 get_kernel_ns(void) 1110static inline u64 get_kernel_ns(void)
1111{ 1111{
1112 struct timespec ts; 1112 return ktime_get_boot_ns();
1113
1114 ktime_get_ts(&ts);
1115 monotonic_to_bootbased(&ts);
1116 return timespec_to_ns(&ts);
1117} 1113}
1118 1114
1119#ifdef CONFIG_X86_64 1115#ifdef CONFIG_X86_64