Commit 85553837 authored by Nysal Jan K.A's avatar Nysal Jan K.A Committed by Greg Kroah-Hartman
Browse files

powerpc/topology: Check if a core is online



[ Upstream commit 227bbaab ]

topology_is_core_online() checks if the core a CPU belongs to
is online. The core is online if at least one of the sibling
CPUs is online. The first CPU of an online core is also online
in the common case, so this should be fairly quick.

Fixes: 73c58e7e ("powerpc: Add HOTPLUG_SMT support")
Signed-off-by: default avatarNysal Jan K.A <nysal@linux.ibm.com>
Reviewed-by: default avatarShrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240731030126.956210-3-nysal@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f17c3a37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment