]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: add apic_timer_expired()
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 10 Oct 2014 17:15:08 +0000 (19:15 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:27 +0000 (12:07 +0100)
commit1aebdc020068f4b0137004e8eb3168112447ed9d
tree70a0f1520417d855078bb9ef42c690008c6ceac4
parentf74de7124556841ff454ae58fffe25428820a37d
KVM: x86: add apic_timer_expired()

Make the code reusable.

If the timer was already pending, we shouldn't be waiting in a queue,
so wake_up can be skipped, simplifying the path.

There is no 'reinject' case => the comment is removed.
Current race behaves correctly.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c