From: Johannes Berg Date: Wed, 24 Sep 2008 22:56:25 +0000 (+0000) Subject: powerpc: Fix failure to shutdown with CPU hotplug X-Git-Tag: v2.6.27-rc9~54^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e9916eba35dfb76d38013a5aae9a59cc50877a;p=pandora-kernel.git powerpc: Fix failure to shutdown with CPU hotplug I tracked down the shutdown regression to CPUs not dying when being shut down during power-off. This turns out to be due to the system_state being SYSTEM_POWER_OFF, which this code doesn't take as a valid state for shutting off CPUs in. This has never made sense to me, but when I added hotplug code to implement hibernate I only "made it work" and did not question the need to check the system_state. Thomas Gleixner helped me dig, but the only thing we found is that it was added with the original commit that added CPU hotplug support. Signed-off-by: Johannes Berg Acked-by: Joel Schopp Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed