Commit 9aa9b4fc authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Greg Kroah-Hartman

x86/topology: remove arch_*register_cpu() exports

arch_register_cpu() and arch_unregister_cpu() are not used by anything
that can be a module - they are used by drivers/base/cpu.c and
drivers/acpi/acpi_processor.c, neither of which can be a module.

Remove the exports.
Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
Signed-off-by: default avatar"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/E1r5R2r-00Csyh-7B@rmk-PC.armlinux.org.ukSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d87c4937
...@@ -45,13 +45,11 @@ int arch_register_cpu(int cpu) ...@@ -45,13 +45,11 @@ int arch_register_cpu(int cpu)
xc->cpu.hotpluggable = cpu > 0; xc->cpu.hotpluggable = cpu > 0;
return register_cpu(&xc->cpu, cpu); return register_cpu(&xc->cpu, cpu);
} }
EXPORT_SYMBOL(arch_register_cpu);
void arch_unregister_cpu(int num) void arch_unregister_cpu(int num)
{ {
unregister_cpu(&per_cpu(cpu_devices, num).cpu); unregister_cpu(&per_cpu(cpu_devices, num).cpu);
} }
EXPORT_SYMBOL(arch_unregister_cpu);
#else /* CONFIG_HOTPLUG_CPU */ #else /* CONFIG_HOTPLUG_CPU */
int __init arch_register_cpu(int num) int __init arch_register_cpu(int num)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment