+1
−0
+23
−0
Loading
Merge Pull Request from: @caodongxia 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: Jie Liu (1): config: enable CONFIG_HOTPLUG_SMT for arm64 Michael Ellerman (2): cpu/SMT: Move SMT prototypes into cpu_smt.h cpu/SMT: Store the current/max number of threads Yicong Yang (4): arch_topology: Support basic SMT control for the driver 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 | 1 + arch/arm64/configs/openeuler_defconfig | 1 + arch/arm64/kernel/topology.c | 23 +++++++++++++ arch/x86/include/asm/topology.h | 2 ++ arch/x86/kernel/cpu/common.c | 2 +- drivers/base/arch_topology.c | 46 ++++++++++++++++++++++++++ include/linux/arch_topology.h | 14 ++++++++ include/linux/cpu.h | 25 +------------- include/linux/cpu_smt.h | 33 ++++++++++++++++++ kernel/cpu.c | 24 ++++++++++++-- 10 files changed, 144 insertions(+), 27 deletions(-) create mode 100644 include/linux/cpu_smt.h issue: https://gitee.com/caodongxia/kernel/commits/OLK-5.10 reference: https://gitee.com/openeuler/kernel/pulls/3745 Tests has been done on our real ACPI based arm64 server and on ACPI/OF based QEMU VMs. Link:https://gitee.com/openeuler/kernel/pulls/12996 Reviewed-by:Xie XiuQi <xiexiuqi@huawei.com> Reviewed-by:
Zhang Jianhua <chris.zjh@huawei.com> Reviewed-by:
Zucheng Zheng <zhengzucheng@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>