From: Christian Borntraeger Date: Wed, 21 May 2008 11:37:16 +0000 (+0200) Subject: KVM: s390: use yield instead of schedule to implement diag 0x44 X-Git-Tag: upstream/snapshot3+hdmi~24671^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8cee18cc75d7b9dbe6c6526dfae9ab49e84fa95;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: s390: use yield instead of schedule to implement diag 0x44 diag 0x44 is the common way on s390 to yield the cpu to the hypervisor. It is called by the guest in cpu_relax and in the spinlock code to yield to other guest cpus. This semantic is similar to yield. Lets replace the call to schedule with yield to make sure that current is really yielding. Signed-off-by: Christian Borntraeger Signed-off-by: Carsten Otte Signed-off-by: Avi Kivity --- diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c index f639a15..a0775e1 100644 --- a/arch/s390/kvm/diag.c +++ b/arch/s390/kvm/diag.c @@ -20,7 +20,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); - schedule(); + yield(); vcpu_load(vcpu); return 0; }