diff options
author | Piotr Luc <piotr.luc@intel.com> | 2016-10-12 14:26:34 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-10-17 04:45:08 -0400 |
commit | 608284bf0def3ca5e6936920fcd84294101ef12d (patch) | |
tree | 8aac747e41c4f3abf4bc25fb9841b6277cef1ec6 /arch/x86 | |
parent | 0047f59834e5947d45f34f5f12eb330d158f700b (diff) |
perf/x86/intel: Add Knights Mill CPUID
Add Knights Mill (KNM) to the list of CPUIDs supported by PMU.
Signed-off-by: Piotr Luc <piotr.luc@intel.com>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161012182634.2462-1-piotr.luc@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/events/intel/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index a3a9eb84b5cf..eab0915f5995 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c | |||
@@ -3898,6 +3898,7 @@ __init int intel_pmu_init(void) | |||
3898 | break; | 3898 | break; |
3899 | 3899 | ||
3900 | case INTEL_FAM6_XEON_PHI_KNL: | 3900 | case INTEL_FAM6_XEON_PHI_KNL: |
3901 | case INTEL_FAM6_XEON_PHI_KNM: | ||
3901 | memcpy(hw_cache_event_ids, | 3902 | memcpy(hw_cache_event_ids, |
3902 | slm_hw_cache_event_ids, sizeof(hw_cache_event_ids)); | 3903 | slm_hw_cache_event_ids, sizeof(hw_cache_event_ids)); |
3903 | memcpy(hw_cache_extra_regs, | 3904 | memcpy(hw_cache_extra_regs, |
@@ -3912,7 +3913,7 @@ __init int intel_pmu_init(void) | |||
3912 | x86_pmu.flags |= PMU_FL_HAS_RSP_1; | 3913 | x86_pmu.flags |= PMU_FL_HAS_RSP_1; |
3913 | x86_pmu.flags |= PMU_FL_NO_HT_SHARING; | 3914 | x86_pmu.flags |= PMU_FL_NO_HT_SHARING; |
3914 | 3915 | ||
3915 | pr_cont("Knights Landing events, "); | 3916 | pr_cont("Knights Landing/Mill events, "); |
3916 | break; | 3917 | break; |
3917 | 3918 | ||
3918 | case INTEL_FAM6_SKYLAKE_MOBILE: | 3919 | case INTEL_FAM6_SKYLAKE_MOBILE: |