smp: Provide 'setup_max_cpus' definition on UP too
authorIngo Molnar <mingo@kernel.org>
Mon, 26 Feb 2024 11:07:31 +0000 (12:07 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 27 Feb 2024 09:05:41 +0000 (10:05 +0100)
commit3c2f8859ae1ce53f2a89c8e4ca4092101afbff67
tree57ef089b56a1312bbddbdebd2cd2f3c5033a0386
parent4c8a49854130da0117a0fdb858551824919a2389
smp: Provide 'setup_max_cpus' definition on UP too

This was already defined locally by init/main.c, but let's make
it generic, as arch/x86/kernel/cpu/topology.c is going to make
use of it to have more uniform code.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/smp.h
init/main.c