
From: Hongye Lin <linhongye@h-partners.com> driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IBZQQR ---------------------------------------------------------------------- The core CPU control framework supports runtime SMT control which is not yet supported on arm64. Besides the general vulnerabilities concerns we want this runtime control on our arm64 server for: - better single CPU performance in some cases - saving overall power consumption This patchset implements it in the following aspects: - Provides a default topology_is_primary_thread() - support retrieve SMT thread number on OF based system - support retrieve SMT thread number on ACPI based system - select HOTPLUG_SMT for arm64 Tests has been done on our ACPI based arm64 server and on ACPI/OF based QEMU VMs. Yicong Yang (5): Revert "arm64: Kconfig: Enable HOTPLUG_SMT" cpu/SMT: Provide a default topology_is_primary_thread() arch_topology: Support SMT control for OF based system arm64: topology: Support SMT control on ACPI based system arm64: Kconfig: Enable HOTPLUG_SMT arch/arm64/Kconfig | 2 +- arch/arm64/configs/openeuler_defconfig | 1 - arch/arm64/kernel/topology.c | 67 +++++++++++++++++++------- arch/powerpc/include/asm/topology.h | 1 + arch/x86/include/asm/topology.h | 3 +- drivers/base/arch_topology.c | 61 +++++++---------------- include/linux/arch_topology.h | 14 ------ include/linux/topology.h | 24 +++++++++ 8 files changed, 94 insertions(+), 79 deletions(-) -- 2.33.0