aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries
diff options
context:
space:
mode:
authorNathan Fontenot <nfont@austin.ibm.com>2010-01-14 04:52:44 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-01-14 21:26:18 -0500
commitd0174c721900ff807b95ac4ab23191ffcb7511c7 (patch)
tree7f88a45d99e689d754f7ed4240403622d6ca3128 /arch/powerpc/platforms/pseries
parent9becd2a0d6a7996669a606b9da33cee6d413acb0 (diff)
powerpc: Move cpu hotplug driver lock from pseries to powerpc
Move the defintion and lock helper routines for the cpu hotplug driver lock from pseries to powerpc code to avoid build breaks for platforms other than pseries that use cpu hotplug. Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com> Acked-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r--arch/powerpc/platforms/pseries/dlpar.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c
index 3bd8df8af70b..37bce52526da 100644
--- a/arch/powerpc/platforms/pseries/dlpar.c
+++ b/arch/powerpc/platforms/pseries/dlpar.c
@@ -346,20 +346,6 @@ int dlpar_release_drc(u32 drc_index)
346 346
347#ifdef CONFIG_ARCH_CPU_PROBE_RELEASE 347#ifdef CONFIG_ARCH_CPU_PROBE_RELEASE
348 348
349static DEFINE_MUTEX(pseries_cpu_hotplug_mutex);
350
351void cpu_hotplug_driver_lock(void)
352__acquires(pseries_cpu_hotplug_mutex)
353{
354 mutex_lock(&pseries_cpu_hotplug_mutex);
355}
356
357void cpu_hotplug_driver_unlock(void)
358__releases(pseries_cpu_hotplug_mutex)
359{
360 mutex_unlock(&pseries_cpu_hotplug_mutex);
361}
362
363static int dlpar_online_cpu(struct device_node *dn) 349static int dlpar_online_cpu(struct device_node *dn)
364{ 350{
365 int rc = 0; 351 int rc = 0;