powerpc: remove cpu_online_cores_map function
authorNicholas Piggin <npiggin@gmail.com>
Fri, 5 Nov 2021 03:50:41 +0000 (13:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 11:48:32 +0000 (22:48 +1100)
commitb350111bf7b3f4a780d28c44f18f7c9fcbe6d11b
tree0ad70789f90058a0fe658a7265756af1ad94983b
parentaf3fdce4ab0781ea183107c90de9cbf21d701c54
powerpc: remove cpu_online_cores_map function

This function builds the cores online map with on-stack cpumasks which
can cause high stack usage with large NR_CPUS.

It is not used in any performance sensitive paths, so instead just check
for first thread sibling.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211105035042.1398309-1-npiggin@gmail.com
arch/powerpc/include/asm/cputhreads.h
arch/powerpc/platforms/powernv/idle.c
arch/powerpc/platforms/powernv/opal-imc.c