]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/topology: Check if a core is online
authorNysal Jan K.A <nysal@linux.ibm.com>
Wed, 31 Jul 2024 03:01:13 +0000 (08:31 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Aug 2024 00:32:17 +0000 (10:32 +1000)
commit227bbaabe64b6f9cd98aa051454c1d4a194a8c6a
tree5ee73183f57d0669476735b83b44e7c5fd462c89
parent6c17ea1f3eaa330d445ac14a9428402ce4e3055e
powerpc/topology: Check if a core is online

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: 73c58e7e1412 ("powerpc: Add HOTPLUG_SMT support")
Signed-off-by: Nysal Jan K.A <nysal@linux.ibm.com>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240731030126.956210-3-nysal@linux.ibm.com
arch/powerpc/include/asm/topology.h