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)
commit5d87db711937019cb8eba1137c37573d7a604be8
tree70a0f1520417d855078bb9ef42c690008c6ceac4
parent91690bf32ee12a85caf497ec01cfb47c0b298bac
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