mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 13:04:18 +00:00
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>
This commit is contained in:
parent
66386ade2a
commit
b351c39cc9
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue