Skip to content

Commit 6be4ec2

Browse files
author
Ingo Molnar
committed
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>
1 parent 3c2f885 commit 6be4ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void topology_hotunplug_apic(unsigned int cpu)
344344
}
345345
#endif
346346

347-
#ifdef CONFIG_SMP
347+
#ifdef CONFIG_X86_LOCAL_APIC
348348
static unsigned int max_possible_cpus __initdata = NR_CPUS;
349349

350350
/**

0 commit comments

Comments
 (0)