diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2012-04-25 09:30:39 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-04-30 20:38:31 -0400 |
commit | 8733ac36fc37fe055a7d7daadf5451b4231f0214 (patch) | |
tree | 0abb6ce4768ab9744ddfbf981e8a6c4f534786dd /arch/s390 | |
parent | 41628d334361670d825fb03c04568f5ef9f084dc (diff) |
KVM: s390: use kvm_vcpu_on_spin for diag 0x44
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kvm/diag.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c index 2d2ae327b747..b23d9ac77dfc 100644 --- a/arch/s390/kvm/diag.c +++ b/arch/s390/kvm/diag.c | |||
@@ -47,9 +47,7 @@ static int __diag_time_slice_end(struct kvm_vcpu *vcpu) | |||
47 | { | 47 | { |
48 | VCPU_EVENT(vcpu, 5, "%s", "diag time slice end"); | 48 | VCPU_EVENT(vcpu, 5, "%s", "diag time slice end"); |
49 | vcpu->stat.diagnose_44++; | 49 | vcpu->stat.diagnose_44++; |
50 | vcpu_put(vcpu); | 50 | kvm_vcpu_on_spin(vcpu); |
51 | yield(); | ||
52 | vcpu_load(vcpu); | ||
53 | return 0; | 51 | return 0; |
54 | } | 52 | } |
55 | 53 | ||