]> www.infradead.org Git - users/dwmw2/linux.git/commit
perf/events/amd/uncore: Fix amd_uncore_llc ID to use pre-defined cpu_llc_id
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Fri, 27 Apr 2018 21:34:35 +0000 (16:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:48 +0000 (07:28 +0200)
commit9d8d1ac09c445b1afab14d92e0b16c632b5f3d7f
treee5a5eb4c3e13cf01abf0613346649d6b08232456
parent2fc446242288df2bf8d76d4b5ddf1bcceae2ea9d
perf/events/amd/uncore: Fix amd_uncore_llc ID to use pre-defined cpu_llc_id

[ Upstream commit 812af433038f984fd951224e8239b09188e36a13 ]

Current logic iterates over CPUID Fn8000001d leafs (Cache Properties)
to detect the last level cache, and derive the last-level cache ID.
However, this information is already available in the cpu_llc_id.
Therefore, make use of it instead.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Link: http://lkml.kernel.org/r/1524864877-111962-3-git-send-email-suravee.suthikulpanit@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/events/amd/uncore.c