[PATCH 19/20] x86, rapl: add Skylake server model detection

From: Dave Hansen
Date: Thu Jun 02 2016 - 20:20:34 EST



From: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>

SKX uses similar RAPL interface as Broadwell server.

Signed-off-by: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---

b/arch/x86/events/intel/rapl.c | 1 +
1 file changed, 1 insertion(+)

diff -puN arch/x86/events/intel/rapl.c~x86-intel-familites-rapl-skx arch/x86/events/intel/rapl.c
--- a/arch/x86/events/intel/rapl.c~x86-intel-familites-rapl-skx 2016-06-02 15:19:23.679462110 -0700
+++ b/arch/x86/events/intel/rapl.c 2016-06-02 15:19:23.688462520 -0700
@@ -807,6 +807,7 @@ static const struct x86_cpu_id rapl_cpu_

X86_RAPL_MODEL_MATCH(INTEL_FAM6_SKYLAKE_MOBILE, skl_rapl_init),
X86_RAPL_MODEL_MATCH(INTEL_FAM6_SKYLAKE_DESKTOP, skl_rapl_init),
+ X86_RAPL_MODEL_MATCH(INTEL_FAM6_SKYLAKE_X, hsx_rapl_init),
{},
};

_