KVM: x86: consolidate "has lapic" checks into irq.c
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jan 2016 12:41:16 +0000 (13:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2016 15:57:39 +0000 (16:57 +0100)
commit1e3161b4147caf2045ac4aae3d71fae6ac1a1d65
tree06ab2411f3828f4d1b1fba89c593f987647a2e05
parentf8543d6a977a1bdb37eb13ad81ef2874526209b0
KVM: x86: consolidate "has lapic" checks into irq.c

Do for kvm_cpu_has_pending_timer and kvm_inject_pending_timer_irqs
what the other irq.c routines have been doing.

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