Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ec18cd8 authored by Stephane Eranian's avatar Stephane Eranian Committed by Ingo Molnar
Browse files

perf/x86: Enable Intel Cedarview Atom suppport



This patch enables perf_events support for Intel Cedarview
Atom (model 54) processors. Support includes PEBS and LBR.
Tested on my Atom N2600 netbook.

Signed-off-by: default avatarStephane Eranian <eranian@google.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120820092421.GA11284@quad


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent a6fa941d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2008,6 +2008,7 @@ __init int intel_pmu_init(void)
		break;

	case 28: /* Atom */
	case 54: /* Cedariew */
		memcpy(hw_cache_event_ids, atom_hw_cache_event_ids,
		       sizeof(hw_cache_event_ids));

+2 −1
Original line number Diff line number Diff line
@@ -686,7 +686,8 @@ void intel_pmu_lbr_init_atom(void)
	 * to have an operational LBR which can freeze
	 * on PMU interrupt
	 */
	if (boot_cpu_data.x86_mask < 10) {
	if (boot_cpu_data.x86_model == 28
	    && boot_cpu_data.x86_mask < 10) {
		pr_cont("LBR disabled due to erratum");
		return;
	}