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)
commit3b1313eb32c499d46dc4c3e896d19d9564c879c4
treeae5ba376a2a50f3d814a23caa46d5bc0c5fca239
parenta8d0f11ee50ddbd9f243c7a8b1a393a4f23ba093
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