diff options
author | Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> | 2013-12-13 01:07:21 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-13 08:23:45 -0500 |
commit | c08ac06ab3f3cdb8d34376c3a8a5e46a31a62c8f (patch) | |
tree | 775a9dadbab5d86bd83a264ece99d42079bbdb50 /arch/ia64/kvm | |
parent | 6bb05ef78553491b2e2e0710dde364331dc3cdd2 (diff) |
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>
Diffstat (limited to 'arch/ia64/kvm')
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 985bf80c622e..53f44bee9ebb 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -702,7 +702,7 @@ again: | |||
702 | out: | 702 | out: |
703 | srcu_read_unlock(&vcpu->kvm->srcu, idx); | 703 | srcu_read_unlock(&vcpu->kvm->srcu, idx); |
704 | if (r > 0) { | 704 | if (r > 0) { |
705 | kvm_resched(vcpu); | 705 | cond_resched(); |
706 | idx = srcu_read_lock(&vcpu->kvm->srcu); | 706 | idx = srcu_read_lock(&vcpu->kvm->srcu); |
707 | goto again; | 707 | goto again; |
708 | } | 708 | } |