Skip to contentSkip to conversation

KVM: x86: remove WARN_ON from get_kernel_ns()

PATCH Marcelo Tosatti 2 participants 2 messages Apr 10, 2014 – Apr 12, 2014

Subsystems (3)
lore
Share & tools
lore
maintainer Reviewed-by
#1 lore raw

Il 10/04/2014 17:19, Marcelo Tosatti ha scritto:

Quoted 20 lines

Function and callers can be preempted.

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

arch/x86/kvm/x86.c +0 -2
index 2b85784..ee0c3b5 100644
@@ -1109,7 +1109,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);
--
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html