KVM: Use cond_resched() directly and remove useless kvm_resched()
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kvm / x86.c
index 5276618579d34669779a6061f0fa66610f3532f4..805c8e92cf669167920c282aa3da5c6f11fe9d8a 100644 (file)
@@ -5947,7 +5947,7 @@ static int __vcpu_run(struct kvm_vcpu *vcpu)
                }
                if (need_resched()) {
                        srcu_read_unlock(&kvm->srcu, vcpu->srcu_idx);
-                       kvm_resched(vcpu);
+                       cond_resched();
                        vcpu->srcu_idx = srcu_read_lock(&kvm->srcu);
                }
        }