diff options
author | Ingo Molnar <mingo@kernel.org> | 2024-02-26 12:07:31 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-02-27 10:05:41 +0100 |
commit | 6be4ec29685c216ebec61d35f56c3808092498aa (patch) | |
tree | 0f7b94124890d2dbbd0930f1f1ff5c1d7d2db300 /arch/x86/kernel/cpu | |
parent | 3c2f8859ae1ce53f2a89c8e4ca4092101afbff67 (diff) |
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/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/topology.c | 2 |
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; /** |