diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2014-04-11 01:19:12 +0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2014-04-15 00:50:43 +0400 |
commit | b351c39cc9e0151cee9b8d52a1e714928faabb38 (patch) | |
tree | 0a6f9ff4aee585dc1f332339b74cc0be7013c193 | |
parent | 66386ade2aa7f5fcf0dda4171df7b4d4c274d2d6 (diff) | |
download | linux-b351c39cc9e0151cee9b8d52a1e714928faabb38.tar.xz |
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>
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 41693787cd66..757d40871b30 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); |