]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/pseries: Only call start-cpu when a CPU is stopped
authorMichael Neuling <mikey@neuling.org>
Wed, 28 Apr 2010 13:39:41 +0000 (13:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:15:48 +0000 (11:15 -0700)
commitf296ca149160391e4b6ed4ec3be030984d666de6
treef354485cdfe4a76616d8b6c32d5e993044fd664c
parent59bc0ab7a724a9af69bc226283ec0d81ff815257
powerpc/pseries: Only call start-cpu when a CPU is stopped

commit aef40e87d866355ffd279ab21021de733242d0d5 upstream.

Currently we always call start-cpu irrespective of if the CPU is
stopped or not. Unfortunatley on POWER7, firmware seems to not like
start-cpu being called when a cpu already been started.  This was not
the case on POWER6 and earlier.

This patch checks to see if the CPU is stopped or not via an
query-cpu-stopped-state call, and only calls start-cpu on CPUs which
are stopped.

This fixes a bug with kexec on POWER7 on PHYP where only the primary
thread would make it to the second kernel.

Reported-by: Ankita Garg <ankita@linux.vnet.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/pseries/smp.c