From: Alexander Graf Date: Sun, 12 Aug 2012 09:27:49 +0000 (+0200) Subject: KVM: PPC: Book3S: PR: Only do resched check once per exit X-Git-Tag: next-20120925~30^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a56d72f12929f53afc4e141e871f1e6b758d2346;p=karo-tx-linux.git KVM: PPC: Book3S: PR: Only do resched check once per exit Now that we use our generic exit helper, we can safely drop our previous kvm_resched that we used to trigger at the beginning of the exit handler function. Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 10f8217b8c38..2c268a15b20f 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -602,7 +602,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, trace_kvm_exit(exit_nr, vcpu); preempt_enable(); - kvm_resched(vcpu); + switch (exit_nr) { case BOOK3S_INTERRUPT_INST_STORAGE: {