KVM: lapic: reorganize restart_apic_timer
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 15:14:50 +0000 (17:14 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 16:18:52 +0000 (18:18 +0200)
commita749e247f745f609fd1106f1400ea063fe9b18ba
tree179c24b74a8021d3c8e229200984d35f36c6f96e
parent35ee9e48b9df6c7751e8f759a4deec5aed1463c3
KVM: lapic: reorganize restart_apic_timer

Move the code to cancel the hv timer into the caller, just before
it starts the hrtimer.  Check availability of the hv timer in
start_hv_timer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c