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 /include/linux | |
| 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 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 9523d2ad7535..4ecf10775c4f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -583,7 +583,6 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu); | |||
| 583 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); | 583 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); |
| 584 | bool kvm_vcpu_yield_to(struct kvm_vcpu *target); | 584 | bool kvm_vcpu_yield_to(struct kvm_vcpu *target); |
| 585 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu); | 585 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu); |
| 586 | void kvm_resched(struct kvm_vcpu *vcpu); | ||
| 587 | void kvm_load_guest_fpu(struct kvm_vcpu *vcpu); | 586 | void kvm_load_guest_fpu(struct kvm_vcpu *vcpu); |
| 588 | void kvm_put_guest_fpu(struct kvm_vcpu *vcpu); | 587 | void kvm_put_guest_fpu(struct kvm_vcpu *vcpu); |
| 589 | 588 | ||
