aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGravatar Ingo Molnar <mingo@kernel.org> 2024-02-26 12:07:31 +0100
committerGravatar Ingo Molnar <mingo@kernel.org> 2024-02-27 10:05:41 +0100
commit6be4ec29685c216ebec61d35f56c3808092498aa (patch)
tree0f7b94124890d2dbbd0930f1f1ff5c1d7d2db300 /arch/x86
parentsmp: Provide 'setup_max_cpus' definition on UP too (diff)
downloadlinux-6be4ec29685c216ebec61d35f56c3808092498aa.tar.gz
linux-6be4ec29685c216ebec61d35f56c3808092498aa.tar.bz2
linux-6be4ec29685c216ebec61d35f56c3808092498aa.zip
x86/apic: Build the x86 topology enumeration functions on UP APIC builds too
These functions are mostly pointless on UP, but nevertheless the 64-bit UP APIC build already depends on the existence of topology_apply_cmdline_limits_early(), which caused a build bug, resolve it by making them available under CONFIG_X86_LOCAL_APIC, as their prototypes already are. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c
index 41dd8e0eb511..43650fe81741 100644
--- a/arch/x86/kernel/cpu/topology.c
+++ b/arch/x86/kernel/cpu/topology.c
@@ -344,7 +344,7 @@ void topology_hotunplug_apic(unsigned int cpu)
}
#endif
-#ifdef CONFIG_SMP
+#ifdef CONFIG_X86_LOCAL_APIC
static unsigned int max_possible_cpus __initdata = NR_CPUS;
/**