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

Commit b351c39c authored by Marcelo Tosatti's avatar Marcelo Tosatti
Browse files

KVM: x86: remove WARN_ON from get_kernel_ns()

Function and callers can be preempted.

https://bugzilla.kernel.org/show_bug.cgi?id=73721



Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 66386ade
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1123,7 +1123,6 @@ static inline u64 get_kernel_ns(void)
{
	struct timespec ts;

	WARN_ON(preemptible());
	ktime_get_ts(&ts);
	monotonic_to_bootbased(&ts);
	return timespec_to_ns(&ts);