powerpc/pseries: Make query_cpu_stopped callable outside hotplug cpu
authorMichael Neuling <mikey@neuling.org>
Wed, 28 Apr 2010 13:39:41 +0000 (13:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2010 06:49:25 +0000 (16:49 +1000)
commitf8b67691828321f5c85bb853283aa101ae673130
tree0938bf959cb7d830547d76bc8a40c33dd03c1d2a
parenta32fe93daf9c6b6ffbab1d9b9e2a8e4c335bda5c
powerpc/pseries: Make query_cpu_stopped callable outside hotplug cpu

This moves query_cpu_stopped() out of the hotplug cpu code and into
smp.c so it can called in other places and renames it to
smp_query_cpu_stopped().

It also cleans up the return values by adding some #defines

Cc: <stable@kernel.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hotplug-cpu.c
arch/powerpc/platforms/pseries/plpar_wrappers.h
arch/powerpc/platforms/pseries/smp.c