summaryrefslogtreecommitdiffstats
path: root/arch/x86/events
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@amd.com>2020-09-08 16:47:40 -0500
committerPeter Zijlstra <peterz@infradead.org>2020-09-10 11:19:36 +0200
commita77259bdcb62a2c345914df659a1fbc421269a8b (patch)
tree1ae58baf14a9631e76489a246311c964f3089685 /arch/x86/events
parent8b0bed7d410f48499d72af2e2bcd890daad94e0d (diff)
downloadlinux-a77259bdcb62a2c345914df659a1fbc421269a8b.tar.gz
linux-a77259bdcb62a2c345914df659a1fbc421269a8b.tar.bz2
linux-a77259bdcb62a2c345914df659a1fbc421269a8b.zip
perf/x86/rapl: Add AMD Fam19h RAPL support
Family 19h RAPL support did not change from Family 17h; extend the existing Fam17h support to work on Family 19h too. Signed-off-by: Kim Phillips <kim.phillips@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200908214740.18097-8-kim.phillips@amd.com
Diffstat (limited to 'arch/x86/events')
-rw-r--r--arch/x86/events/rapl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 67b411f7e8c4..7c0120e2e957 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -815,6 +815,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr),
X86_MATCH_VENDOR_FAM(AMD, 0x17, &model_amd_fam17h),
X86_MATCH_VENDOR_FAM(HYGON, 0x18, &model_amd_fam17h),
+ X86_MATCH_VENDOR_FAM(AMD, 0x19, &model_amd_fam17h),
{},
};
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);