diff options
-rw-r--r-- | arch/powerpc/kernel/smp.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/dlpar.c | 14 |
2 files changed, 12 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index a521fb8a40ee..c2ee14498077 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -619,4 +619,16 @@ void __cpu_die(unsigned int cpu) | |||
619 | if (smp_ops->cpu_die) | 619 | if (smp_ops->cpu_die) |
620 | smp_ops->cpu_die(cpu); | 620 | smp_ops->cpu_die(cpu); |
621 | } | 621 | } |
622 | |||
623 | static DEFINE_MUTEX(powerpc_cpu_hotplug_driver_mutex); | ||
624 | |||
625 | void cpu_hotplug_driver_lock() | ||
626 | { | ||
627 | mutex_lock(&powerpc_cpu_hotplug_driver_mutex); | ||
628 | } | ||
629 | |||
630 | void cpu_hotplug_driver_unlock() | ||
631 | { | ||
632 | mutex_unlock(&powerpc_cpu_hotplug_driver_mutex); | ||
633 | } | ||
622 | #endif | 634 | #endif |
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 | ||
349 | static DEFINE_MUTEX(pseries_cpu_hotplug_mutex); | ||
350 | |||
351 | void cpu_hotplug_driver_lock(void) | ||
352 | __acquires(pseries_cpu_hotplug_mutex) | ||
353 | { | ||
354 | mutex_lock(&pseries_cpu_hotplug_mutex); | ||
355 | } | ||
356 | |||
357 | void cpu_hotplug_driver_unlock(void) | ||
358 | __releases(pseries_cpu_hotplug_mutex) | ||
359 | { | ||
360 | mutex_unlock(&pseries_cpu_hotplug_mutex); | ||
361 | } | ||
362 | |||
363 | static int dlpar_online_cpu(struct device_node *dn) | 349 | static int dlpar_online_cpu(struct device_node *dn) |
364 | { | 350 | { |
365 | int rc = 0; | 351 | int rc = 0; |