diff options
author | Nysal Jan K.A <nysal@linux.ibm.com> | 2024-07-31 06:01:13 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-08-13 03:32:17 +0300 |
commit | 227bbaabe64b6f9cd98aa051454c1d4a194a8c6a (patch) | |
tree | 5ee73183f57d0669476735b83b44e7c5fd462c89 /Documentation/ABI/testing | |
parent | 6c17ea1f3eaa330d445ac14a9428402ce4e3055e (diff) | |
download | linux-227bbaabe64b6f9cd98aa051454c1d4a194a8c6a.tar.xz |
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
Diffstat (limited to 'Documentation/ABI/testing')
0 files changed, 0 insertions, 0 deletions