Skip to content

Commit

Permalink
KVM: x86: remove WARN_ON from get_kernel_ns()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matosatti committed Apr 14, 2014
1 parent 66386ad commit b351c39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/x86.c
Expand Up @@ -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);
Expand Down

0 comments on commit b351c39

Please sign in to comment.