Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132009
b: refs/heads/master
c: 780eef9
h: refs/heads/master
i:
  132007: d700f40
v: v3
  • Loading branch information
Tim Blechmann authored and Ingo Molnar committed Mar 3, 2009
1 parent 80e6abb commit 36c5361
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fc59d3a01820765e5f3a723733728758b0cf577
refs/heads/master: 780eef9492b16a1543a3b2ae9f9526a735fc9856
14 changes: 12 additions & 2 deletions trunk/arch/x86/oprofile/op_model_ppro.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,18 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)
if (cpu_has_arch_perfmon) {
union cpuid10_eax eax;
eax.full = cpuid_eax(0xa);
if (counter_width < eax.split.bit_width)
counter_width = eax.split.bit_width;

/*
* For Core2 (family 6, model 15), don't reset the
* counter width:
*/
if (!(eax.split.version_id == 0 &&
current_cpu_data.x86 == 6 &&
current_cpu_data.x86_model == 15)) {

if (counter_width < eax.split.bit_width)
counter_width = eax.split.bit_width;
}
}

/* clear all counters */
Expand Down

0 comments on commit 36c5361

Please sign in to comment.