KVM: clean up kvm_(set|get)_apic_base
authorGleb Natapov <gleb@redhat.com>
Sun, 5 Aug 2012 12:58:26 +0000 (15:58 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 13:20:03 +0000 (16:20 +0300)
commit8a5a87d9b7aef24bcdba763d8ee14982477b0a2e
tree806447c648a1a7661b8d44fb775f4341c778f033
parent9c5b11728344e1085593f494ddc8838497e7ffde
KVM: clean up kvm_(set|get)_apic_base

kvm_get_apic_base() needlessly checks irqchip_in_kernel although it does
the same no matter what result of the check is. kvm_set_apic_base() also
checks for irqchip_in_kernel, but kvm_lapic_set_base() can handle this
case.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c