提交 40b91cd1 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf, x86: Add Nehalem programming quirk to Westmere

According to the Xeon-5600 errata the Westmere suffers the same PMU
programming bug as the original Nehalem did.
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 caaa8be3
...@@ -488,6 +488,7 @@ static void intel_pmu_enable_all(int added) ...@@ -488,6 +488,7 @@ static void intel_pmu_enable_all(int added)
* Workaround for: * Workaround for:
* Intel Errata AAK100 (model 26) * Intel Errata AAK100 (model 26)
* Intel Errata AAP53 (model 30) * Intel Errata AAP53 (model 30)
* Intel Errata BD53 (model 44)
* *
* These chips need to be 'reset' when adding counters by programming * These chips need to be 'reset' when adding counters by programming
* the magic three (non counting) events 0x4300D2, 0x4300B1 and 0x4300B5 * the magic three (non counting) events 0x4300D2, 0x4300B1 and 0x4300B5
...@@ -980,6 +981,7 @@ static __init int intel_pmu_init(void) ...@@ -980,6 +981,7 @@ static __init int intel_pmu_init(void)
intel_pmu_lbr_init_nhm(); intel_pmu_lbr_init_nhm();
x86_pmu.event_constraints = intel_westmere_event_constraints; x86_pmu.event_constraints = intel_westmere_event_constraints;
x86_pmu.enable_all = intel_pmu_nhm_enable_all;
pr_cont("Westmere events, "); pr_cont("Westmere events, ");
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册