From: Ingo Molnar Date: Fri, 28 Mar 2008 10:57:55 +0000 (+0100) Subject: x86: mpparse, move disabled cpus to smpboot.c, fix X-Git-Tag: Ubuntu-5.13.0-19.19~43496^2~93 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=059c9640b57cb8e70c60de141ec817b450431816;p=mirror_ubuntu-jammy-kernel.git x86: mpparse, move disabled cpus to smpboot.c, fix Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index bf29dcc37de7..0f877a572cf0 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c @@ -196,7 +196,9 @@ static void __cpuinit MP_processor_info(struct mpc_config_processor *m) int apicid; if (!(m->mpc_cpuflag & CPU_ENABLED)) { +#ifdef CONFIG_X86_SMP disabled_cpus++; +#endif return; } @@ -901,7 +903,9 @@ void __cpuinit mp_register_lapic (u8 id, u8 enabled) } if (!enabled) { +#ifdef CONFIG_X86_SMP ++disabled_cpus; +#endif return; }