瀏覽代碼

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 <mtosatti@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Marcelo Tosatti 11 年之前
父節點
當前提交
b351c39cc9
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      arch/x86/kvm/x86.c

+ 0 - 1
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);