linux/arch/powerpc
Nysal Jan K.A 227bbaabe6 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: 73c58e7e14 ("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
2024-08-13 10:32:17 +10:00
..
boot powerpc: Remove 40x leftovers 2024-07-12 11:43:41 +10:00
configs powerpc/configs: Update defconfig with now user-visible CONFIG_FSL_IFC 2024-07-04 23:10:40 +10:00
crypto This update includes the following changes: 2024-07-19 08:52:58 -07:00
include powerpc/topology: Check if a core is online 2024-08-13 10:32:17 +10:00
kernel powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL 2024-08-12 21:50:20 +10:00
kexec powerpc updates for 6.11 2024-07-19 21:00:33 -07:00
kvm a couple of leaks on failure exits missing fdput() 2024-07-26 10:26:33 -07:00
lib powerpc updates for 6.10 2024-05-17 09:05:46 -07:00
math-emu
mm powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL 2024-08-12 21:50:20 +10:00
net powerpc updates for 6.11 2024-07-19 21:00:33 -07:00
perf powerpc/perf: Set cpumode flags using sample address 2024-06-17 22:47:16 +10:00
platforms Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev of: remove internal arguments from of_property_for_each_u32() 2024-07-25 06:53:47 -05:00
tools powerpc/tools: Pass -mabi=elfv2 to gcc-check-mprofile-kernel.sh 2023-10-20 17:46:33 +11:00
xmon powerpc/xmon: Fix disassembly CPU feature checks 2024-07-11 17:31:54 +10:00
Kbuild powerpc: Fix fatal warnings flag for LLVM's integrated assembler 2024-04-08 16:06:41 +10:00
Kconfig Kbuild updates for v6.11 2024-07-23 14:32:21 -07:00
Kconfig.debug powerpc: Remove 40x from Kconfig and defconfig 2024-06-28 22:28:47 +10:00
Makefile powerpc: Remove 40x from Kconfig and defconfig 2024-06-28 22:28:47 +10:00
Makefile.postlink kbuild: remove ARCH_POSTLINK from module builds 2023-10-28 21:10:08 +09:00