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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Feb 2024 13:14:04 +0000 (00:14 +1100)
commit777f81f0a9c780a6443bcf2c7785f0cc2e87c1ef
tree962a6445c252500898124ec3ac584b4430f5b807
parent5580e96dad5a439d561d9648ffcbccb739c2a120
powerpc/smp: Increase nr_cpu_ids to include the boot CPU

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
arch/powerpc/kernel/prom.c