We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc59d3 commit 780eef9Copy full SHA for 780eef9
arch/x86/oprofile/op_model_ppro.c
@@ -78,8 +78,18 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)
78
if (cpu_has_arch_perfmon) {
79
union cpuid10_eax eax;
80
eax.full = cpuid_eax(0xa);
81
- if (counter_width < eax.split.bit_width)
82
- counter_width = eax.split.bit_width;
+
+ /*
83
+ * For Core2 (family 6, model 15), don't reset the
84
+ * counter width:
85
+ */
86
+ if (!(eax.split.version_id == 0 &&
87
+ current_cpu_data.x86 == 6 &&
88
+ current_cpu_data.x86_model == 15)) {
89
90
+ if (counter_width < eax.split.bit_width)
91
+ counter_width = eax.split.bit_width;
92
+ }
93
}
94
95
/* clear all counters */
0 commit comments