]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Fix shared cache size calculation
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 13 Jul 2022 10:00:41 +0000 (18:00 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:33 +0000 (18:22 +0800)
commitabb720dd4a0a9cf9e597944fc7ea9d6cb7755edf
tree2273750572cd4be482eb7268c8230a40f7e798e8
parent9036515a76c0a5258dd4f9c1ea068e0d38091cf4
LoongArch: Fix shared cache size calculation

Current calculation of shared cache size is from the node (die) scope,
but we hope 'lscpu' to show the shared cache size of the whole package
for multi-die chips (e.g., Loongson-3C5000L, which contains 4 dies in
one package). So fix it by multiplying nodes_per_package.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/cacheinfo.c