diff options
author | Nysal Jan K.A <[email protected]> | 2024-07-31 08:31:13 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2024-08-13 10:32:17 +1000 |
commit | 227bbaabe64b6f9cd98aa051454c1d4a194a8c6a (patch) | |
tree | 5ee73183f57d0669476735b83b44e7c5fd462c89 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 6c17ea1f3eaa330d445ac14a9428402ce4e3055e (diff) |
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 <[email protected]>
Reviewed-by: Shrikanth Hegde <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions