]> git.baikalelectronics.ru Git - kernel.git/commit
mips: cacheinfo: report shared CPU map
authorVladimir Kondratiev <vladimir.kondratiev@intel.com>
Sun, 24 Nov 2019 14:07:31 +0000 (16:07 +0200)
committerPaul Burton <paulburton@kernel.org>
Tue, 26 Nov 2019 18:33:08 +0000 (10:33 -0800)
commitf594915bb00831b179a839b8a4fb34e5d390d0cc
treeae5ba376a2a50f3d814a23caa46d5bc0c5fca239
parent5d9e41bf7e2e53eb21e8312c421b7951c1b88787
mips: cacheinfo: report shared CPU map

Report L1 caches as shared per core; L2 - per cluster.

This fixes "perf" that went crazy if shared_cpu_map attribute not
reported on sysfs, in form of

/sys/devices/system/cpu/cpu*/cache/index*/shared_cpu_list
/sys/devices/system/cpu/cpu*/cache/index*/shared_cpu_map

Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@intel.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/cacheinfo.c