]> git.baikalelectronics.ru Git - kernel.git/commit
ppc/kvm: Clear the runlatch bit of a vcpu before napping
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>
Fri, 11 Apr 2014 10:32:08 +0000 (16:02 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 06:32:49 +0000 (16:32 +1000)
commit28d443d2429386ab7959acf01e0468e2e1b93213
tree2b9e435aacb14de28c5c573b09f75ab4d645d3a1
parentd89e2f5623eba42e3d6c15da0bcfc7cb4db5b8d2
ppc/kvm: Clear the runlatch bit of a vcpu before napping

When the guest cedes the vcpu or the vcpu has no guest to
run it naps. Clear the runlatch bit of the vcpu before
napping to indicate an idle cpu.

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S