Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158239
b: refs/heads/master
c: 52471c6
h: refs/heads/master
i:
  158237: d58deeb
  158235: b680674
  158231: 4a74463
  158223: f673fe1
  158207: 09c818f
v: v3
  • Loading branch information
Robert Richter committed Jul 20, 2009
1 parent 5252623 commit 4e51895
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: 2904a527575344a804fdd82b1f8d09a8731d8d49
refs/heads/master: 52471c67ee2fa5ed6f700ef57bf27833c63b2192
3 changes: 3 additions & 0 deletions trunk/arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,9 @@ int __init op_nmi_init(struct oprofile_operations *ops)
if (ret)
return ret;

if (!model->num_virt_counters)
model->num_virt_counters = model->num_counters;

init_sysfs();
using_nmi = 1;
printk(KERN_INFO "oprofile: using NMI interrupt.\n");
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/oprofile/op_model_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ static void p4_shutdown(struct op_msrs const * const msrs)
struct op_x86_model_spec op_p4_ht2_spec = {
.num_counters = NUM_COUNTERS_HT2,
.num_controls = NUM_CONTROLS_HT2,
.num_virt_counters = NUM_COUNTERS_HT2,
.fill_in_addresses = &p4_fill_in_addresses,
.setup_ctrs = &p4_setup_ctrs,
.check_ctrs = &p4_check_ctrs,
Expand All @@ -711,7 +710,6 @@ struct op_x86_model_spec op_p4_ht2_spec = {
struct op_x86_model_spec op_p4_spec = {
.num_counters = NUM_COUNTERS_NON_HT,
.num_controls = NUM_CONTROLS_NON_HT,
.num_virt_counters = NUM_COUNTERS_NON_HT,
.fill_in_addresses = &p4_fill_in_addresses,
.setup_ctrs = &p4_setup_ctrs,
.check_ctrs = &p4_check_ctrs,
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/oprofile/op_model_ppro.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ static void ppro_shutdown(struct op_msrs const * const msrs)
struct op_x86_model_spec op_ppro_spec = {
.num_counters = 2,
.num_controls = 2,
.num_virt_counters = 2,
.reserved = MSR_PPRO_EVENTSEL_RESERVED,
.fill_in_addresses = &ppro_fill_in_addresses,
.setup_ctrs = &ppro_setup_ctrs,
Expand Down

0 comments on commit 4e51895

Please sign in to comment.