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)
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>

No differences found