diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2024-10-21 22:11:18 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-10-21 22:11:18 +0800 |
commit | b7296f9d5bf99330063d4bbecc43c9b33fed0137 (patch) | |
tree | 77eda88a7e55b94c80fc5f118bd71be006670dcb /.clang-format | |
parent | b69269c870ece1bc7d2e3e39ca76f4602f2cb0dd (diff) | |
download | lwn-b7296f9d5bf99330063d4bbecc43c9b33fed0137.tar.gz lwn-b7296f9d5bf99330063d4bbecc43c9b33fed0137.zip |
LoongArch: Get correct cores_per_package for SMT systems
In loongson_sysconf, The "core" of cores_per_node and cores_per_package
stands for a logical core, which means in a SMT system it stands for a
thread indeed. This information is gotten from SMBIOS Type4 Structure,
so in order to get a correct cores_per_package for both SMT and non-SMT
systems in parse_cpu_table() we should use SMBIOS_THREAD_PACKAGE_OFFSET
instead of SMBIOS_CORE_PACKAGE_OFFSET.
Cc: stable@vger.kernel.org
Reported-by: Chao Li <lichao@loongson.cn>
Tested-by: Chao Li <lichao@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions