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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:08:42 +0000 (11:08 -0700)
commit21dfd35afeaf03c5fe4409d1021b2cc888c11326
treec08ee796025e87f187500a0f1738eb45c2b42f6c
parent4be4e01c7d844bbb7b88a2bcf931ac00408289c3
powerpc/pseries: Make query_cpu_stopped callable outside hotplug cpu

commit f8b67691828321f5c85bb853283aa101ae673130 upstream.

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

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/hotplug-cpu.c
arch/powerpc/platforms/pseries/plpar_wrappers.h
arch/powerpc/platforms/pseries/smp.c