diff options
author | Nysal Jan K.A <nysal@linux.ibm.com> | 2024-07-31 05:01:13 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-08-13 02:32:17 +0200 |
commit | 227bbaabe64b6f9cd98aa051454c1d4a194a8c6a (patch) | |
tree | 5ee73183f57d0669476735b83b44e7c5fd462c89 /rust/macros/lib.rs | |
parent | cpu/SMT: Enable SMT only if a core is online (diff) | |
download | linux-227bbaabe64b6f9cd98aa051454c1d4a194a8c6a.tar.xz linux-227bbaabe64b6f9cd98aa051454c1d4a194a8c6a.zip |
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 'rust/macros/lib.rs')
0 files changed, 0 insertions, 0 deletions