perf/x86/intel/rapl: Add missing Broadwell models
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sun, 20 Mar 2016 23:52:18 +0000 (16:52 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 21 Mar 2016 10:16:19 +0000 (11:16 +0100)
Added Broadwell-H and Broadwell-Server.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: bp@alien8.de
Link: http://lkml.kernel.org/r/1458517938-25308-1-git-send-email-srinivas.pandruvada@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/rapl.c

index b834a3f55a015b0cd2a45972a0e2bdde24c24dfa..70c93f9b03acc49e245154323b2b2787d362d76d 100644 (file)
@@ -711,6 +711,7 @@ static int __init rapl_pmu_init(void)
                rapl_pmu_events_group.attrs = rapl_events_cln_attr;
                break;
        case 63: /* Haswell-Server */
+       case 79: /* Broadwell-Server */
                apply_quirk = true;
                rapl_cntr_mask = RAPL_IDX_SRV;
                rapl_pmu_events_group.attrs = rapl_events_srv_attr;
@@ -718,6 +719,7 @@ static int __init rapl_pmu_init(void)
        case 60: /* Haswell */
        case 69: /* Haswell-Celeron */
        case 61: /* Broadwell */
+       case 71: /* Broadwell-H */
                rapl_cntr_mask = RAPL_IDX_HSW;
                rapl_pmu_events_group.attrs = rapl_events_hsw_attr;
                break;