From: Marcelo Tosatti Date: Thu, 10 Apr 2014 21:19:12 +0000 (-0300) Subject: KVM: x86: remove WARN_ON from get_kernel_ns() X-Git-Tag: v4.9.8~6536^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b351c39cc9e0151cee9b8d52a1e714928faabb38;p=platform%2Fkernel%2Flinux-rpi3.git 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: Marcelo Tosatti Reviewed-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4169378..757d408 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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);