Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb0b5812 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz
Browse files

x86: kvm: Use ktime_get_boot_ns()



Use the new nanoseconds based interface and get rid of the timespec
conversion dance.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 41fa4215
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1109,11 +1109,7 @@ static void kvm_get_time_scale(uint32_t scaled_khz, uint32_t base_khz,

static inline u64 get_kernel_ns(void)
{
	struct timespec ts;

	ktime_get_ts(&ts);
	monotonic_to_bootbased(&ts);
	return timespec_to_ns(&ts);
	return ktime_get_boot_ns();
}

#ifdef CONFIG_X86_64