summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/topology.h
diff options
context:
space:
mode:
authorYunhui Cui <cuiyunhui@bytedance.com>2025-09-23 09:54:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-22 08:10:57 +0200
commit6d0ef68955d30be1e218caf160ec32eec23ebc6e (patch)
tree1add07955881698debd04143db1deb089142bb2a /arch/arm64/include/asm/topology.h
parentcebd22dd3a0ac76e0e1f2f369bba710bc6b1dc66 (diff)
arch_topology: move parse_acpi_topology() to common code
Currently, RISC-V lacks arch-specific registers for CPU topology properties and must get them from ACPI. Thus, parse_acpi_topology() is moved from arm64/ to drivers/ for RISC-V reuse. Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://patch.msgid.link/20250923015409.15983-2-cuiyunhui@bytedance.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm64/include/asm/topology.h')
-rw-r--r--arch/arm64/include/asm/topology.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h
index 341174bf9106..b9eaf4ad7085 100644
--- a/arch/arm64/include/asm/topology.h
+++ b/arch/arm64/include/asm/topology.h
@@ -36,6 +36,9 @@ void update_freq_counters_refs(void);
#define arch_scale_hw_pressure topology_get_hw_pressure
#define arch_update_hw_pressure topology_update_hw_pressure
+#undef arch_cpu_is_threaded
+#define arch_cpu_is_threaded() (read_cpuid_mpidr() & MPIDR_MT_BITMASK)
+
#include <asm-generic/topology.h>
#endif /* _ASM_ARM_TOPOLOGY_H */