KVM: s390: use yield instead of schedule to implement diag 0x44
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 21 May 2008 11:37:16 +0000 (13:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:08:26 +0000 (21:08 +0300)
commitb8cee18cc75d7b9dbe6c6526dfae9ab49e84fa95
tree9b058143e7454ced9493b1b229905f8af6d40d25
parent33e3885de25148e00595c4dd808d6eb15db2edcf
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 <borntraeger@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/diag.c