]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/smp: Increase nr_cpu_ids to include the boot CPU
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Feb 2024 13:14:04 +0000 (00:14 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:19 +0000 (15:28 +0200)
commita0b9f4f8e22b247f4590987554cf070d5c0972dd
treed63263f3da2e4270da9be4f0123eb460ef2151d6
parent68a9c41f01673b1c0eb398d05f54f60dcd548e17
powerpc/smp: Increase nr_cpu_ids to include the boot CPU

[ Upstream commit 777f81f0a9c780a6443bcf2c7785f0cc2e87c1ef ]

If nr_cpu_ids is too low to include the boot CPU adjust nr_cpu_ids
upward. Otherwise the kernel will BUG when trying to allocate a paca
for the boot CPU and fail to boot.

Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231229120107.2281153-2-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/prom.c