perf/x86/intel: Add Elkhart Lake support
authorKan Liang <kan.liang@linux.intel.com>
Tue, 28 Jan 2020 18:31:17 +0000 (10:31 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 12:17:48 +0000 (13:17 +0100)
Elkhart Lake also uses Tremont CPU. From the perspective of Intel PMU,
there is nothing changed compared with Jacobsville.
Share the perf code with Jacobsville.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/1580236279-35492-1-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/core.c

index 3be51aa06e67ec2e5b893af82096b43db5c3f23a..dff6623804c2835b1b67731341301a884edd4ef3 100644 (file)
@@ -4765,6 +4765,7 @@ __init int intel_pmu_init(void)
                break;
 
        case INTEL_FAM6_ATOM_TREMONT_D:
+       case INTEL_FAM6_ATOM_TREMONT:
                x86_pmu.late_ack = true;
                memcpy(hw_cache_event_ids, glp_hw_cache_event_ids,
                       sizeof(hw_cache_event_ids));