KVM: Use cond_resched() directly and remove useless kvm_resched()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 13 Dec 2013 06:07:21 +0000 (15:07 +0900)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:21 +0000 (17:18 +0200)
commit580ab4613364270a998a44850d49c4d8c5df5144
treed8db51159b207aee5bd757f9a331705e3b909f01
parentbc071b4cc769735a12fc9fa17cb54dd42f3fb0e6
KVM: Use cond_resched() directly and remove useless kvm_resched()

Since the commit 15ad7146 ("KVM: Use the scheduler preemption notifiers
to make kvm preemptible"), the remaining stuff in this function is a
simple cond_resched() call with an extra need_resched() check which was
there to avoid dropping VCPUs unnecessarily.  Now it is meaningless.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit c08ac06ab3f3cdb8d34376c3a8a5e46a31a62c8f)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/kvm/book3s_hv.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c