Skip to content

Commit

Permalink
x86/apic: Build the x86 topology enumeration functions on UP APIC bui…
Browse files Browse the repository at this point in the history
…lds 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>
  • Loading branch information
Ingo Molnar committed Feb 27, 2024
1 parent 3c2f885 commit 6be4ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 6be4ec2

Please sign in to comment.