]> git.baikalelectronics.ru Git - kernel.git/commit
ppc/powernv: Set the runlatch bits correctly for offline cpus
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>
Fri, 11 Apr 2014 10:31:48 +0000 (16:01 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 06:32:40 +0000 (16:32 +1000)
commit04ef94d621acb7a9c4b57727145dea3fa63a3184
tree5cfbc57f6bbb8428c53b18fb65132e1086b90e45
parent280b9e852284d8db81b96ea8484df97ddbd89f47
ppc/powernv: Set the runlatch bits correctly for offline cpus

Up until now we have been setting the runlatch bits for a busy CPU and
clearing it when a CPU enters idle state. The runlatch bit has thus
been consistent with the utilization of a CPU as long as the CPU is online.

However when a CPU is hotplugged out the runlatch bit is not cleared. It
needs to be cleared to indicate an unused CPU. Hence this patch has the
runlatch bit cleared for an offline CPU just before entering an idle state
and sets it immediately after it exits the idle state.

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/platforms/powernv/smp.c