projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41628d3
)
KVM: s390: use kvm_vcpu_on_spin for diag 0x44
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Wed, 25 Apr 2012 13:30:39 +0000
(15:30 +0200)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Tue, 1 May 2012 00:38:31 +0000
(21:38 -0300)
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>
arch/s390/kvm/diag.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kvm/diag.c
b/arch/s390/kvm/diag.c
index 2d2ae327b747c2f3b4bb70957d2d8b2da7e50abd..b23d9ac77dfc77fcf090f52fc739b17cc036a69c 100644
(file)
--- 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)
{
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;
}