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>
此提交包含在:

提交者
Benjamin Herrenschmidt

父節點
9becd2a0d6
當前提交
d0174c7219
@@ -346,20 +346,6 @@ int dlpar_release_drc(u32 drc_index)
|
||||
|
||||
#ifdef CONFIG_ARCH_CPU_PROBE_RELEASE
|
||||
|
||||
static DEFINE_MUTEX(pseries_cpu_hotplug_mutex);
|
||||
|
||||
void cpu_hotplug_driver_lock(void)
|
||||
__acquires(pseries_cpu_hotplug_mutex)
|
||||
{
|
||||
mutex_lock(&pseries_cpu_hotplug_mutex);
|
||||
}
|
||||
|
||||
void cpu_hotplug_driver_unlock(void)
|
||||
__releases(pseries_cpu_hotplug_mutex)
|
||||
{
|
||||
mutex_unlock(&pseries_cpu_hotplug_mutex);
|
||||
}
|
||||
|
||||
static int dlpar_online_cpu(struct device_node *dn)
|
||||
{
|
||||
int rc = 0;
|
||||
|
新增問題並參考
封鎖使用者