From: Michael Neuling Date: Wed, 28 Apr 2010 13:39:41 +0000 (+0000) Subject: powerpc/pseries: Only call start-cpu when a CPU is stopped X-Git-Tag: v2.6.35-rc1~450^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef40e87d866355ffd279ab21021de733242d0d5;p=pandora-kernel.git powerpc/pseries: Only call start-cpu when a CPU is stopped 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 Cc: Signed-off-by: Michael Neuling Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed