linux-rockchip/arch/loongarch
Huacai Chen 9bb6ec1175 LoongArch: Get correct cores_per_package for SMT systems
commit b7296f9d5bf99330063d4bbecc43c9b33fed0137 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
..
boot
configs mm: z3fold: deprecate CONFIG_Z3FOLD 2024-10-17 15:22:05 +02:00
include LoongArch: Get correct cores_per_package for SMT systems 2024-11-01 01:56:06 +01:00
kernel LoongArch: Get correct cores_per_package for SMT systems 2024-11-01 01:56:06 +01:00
lib
mm LoongArch: Fix access error when read fault on a write-only VMA 2024-05-02 16:29:28 +02:00
net LoongArch: BPF: Prevent out-of-bounds memory access 2024-01-25 15:27:50 -08:00
pci LoongArch: Fix memleak in pci_acpi_scan_root() 2024-10-17 15:22:16 +02:00
vdso LoongArch: Add support to clone a time namespace 2024-11-01 01:56:03 +01:00
Kbuild
Kconfig LoongArch: Add support to clone a time namespace 2024-11-01 01:56:03 +01:00
Kconfig.debug
Makefile LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi 2023-12-20 17:00:23 +01:00