Commit ba831b7b authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Peter Zijlstra

cpu/hotplug: Mark arch_disable_smp_support() and bringup_nonboot_cpus() __init

No point in keeping them around.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarMichael Kelley <mikelley@microsoft.com>
Tested-by: default avatarOleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Helge Deller <deller@gmx.de> # parisc
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com> # Steam Deck
Link: https://lore.kernel.org/r/20230512205255.551974164@linutronix.de
parent 5107e3eb
......@@ -1269,9 +1269,9 @@ int native_cpu_up(unsigned int cpu, struct task_struct *tidle)
}
/**
* arch_disable_smp_support() - disables SMP support for x86 at runtime
* arch_disable_smp_support() - Disables SMP support for x86 at boottime
*/
void arch_disable_smp_support(void)
void __init arch_disable_smp_support(void)
{
disable_ioapic_support();
}
......
......@@ -1502,7 +1502,7 @@ int bringup_hibernate_cpu(unsigned int sleep_cpu)
return 0;
}
void bringup_nonboot_cpus(unsigned int setup_max_cpus)
void __init bringup_nonboot_cpus(unsigned int setup_max_cpus)
{
unsigned int cpu;
......
......@@ -892,7 +892,7 @@ EXPORT_SYMBOL(setup_max_cpus);
* SMP mode to <NUM>.
*/
void __weak arch_disable_smp_support(void) { }
void __weak __init arch_disable_smp_support(void) { }
static int __init nosmp(char *str)
{
......
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