KVM: x86: clean up kvm_arch_vcpu_runnable
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Oct 2015 08:18:53 +0000 (10:18 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Oct 2015 16:28:59 +0000 (18:28 +0200)
commit5d9bc648b94dd719022343b8675e6c4381f0c45f
tree38388baf64a0902881d44ff26e0f7747e007cfc8
parentf0d648bdf0a5bbc91da6099d5282f77996558ea4
KVM: x86: clean up kvm_arch_vcpu_runnable

Split the huge conditional in two functions.

Fixes: 64d6067057d9658acb8675afcfba549abdb7fc16
Cc: stable@vger.kernel.org
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c