提交 b351c39c 编写于 作者: M Marcelo Tosatti

KVM: x86: remove WARN_ON from get_kernel_ns()

Function and callers can be preempted.

https://bugzilla.kernel.org/show_bug.cgi?id=73721Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 66386ade
...@@ -1123,7 +1123,6 @@ static inline u64 get_kernel_ns(void) ...@@ -1123,7 +1123,6 @@ static inline u64 get_kernel_ns(void)
{ {
struct timespec ts; struct timespec ts;
WARN_ON(preemptible());
ktime_get_ts(&ts); ktime_get_ts(&ts);
monotonic_to_bootbased(&ts); monotonic_to_bootbased(&ts);
return timespec_to_ns(&ts); return timespec_to_ns(&ts);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册