]> Git Repo - linux.git/commitdiff
KVM: x86: remove WARN_ON from get_kernel_ns()
authorMarcelo Tosatti <[email protected]>
Thu, 10 Apr 2014 21:19:12 +0000 (18:19 -0300)
committerMarcelo Tosatti <[email protected]>
Mon, 14 Apr 2014 20:50:43 +0000 (17:50 -0300)
Function and callers can be preempted.

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

Signed-off-by: Marcelo Tosatti <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/x86.c

index 41693787cd66e729311f15e3391b3806c31ba2e2..757d40871b309010cc0b5f67841db6c8dd0c01a8 100644 (file)
@@ -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);
This page took 0.087735 seconds and 4 git commands to generate.