Skip to content

Commit

Permalink
KVM: s390: use kvm_vcpu_on_spin for diag 0x44
Browse files Browse the repository at this point in the history
Lets replace the old open coded version of diag 0x44 (which relied on
compat_sched_yield) with kvm_vcpu_on_spin.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Christian Borntraeger authored and Marcelo Tosatti committed May 1, 2012
1 parent 41628d3 commit 8733ac3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/s390/kvm/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ static int __diag_time_slice_end(struct kvm_vcpu *vcpu)
{
VCPU_EVENT(vcpu, 5, "%s", "diag time slice end");
vcpu->stat.diagnose_44++;
vcpu_put(vcpu);
yield();
vcpu_load(vcpu);
kvm_vcpu_on_spin(vcpu);
return 0;
}

Expand Down

0 comments on commit 8733ac3

Please sign in to comment.