Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147474
b: refs/heads/master
c: b68f1d2
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 18, 2009
1 parent ac0874b commit 45a9ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 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: c0daaf3f1f672defa3a45ca449b76d0e86c55892
refs/heads/master: b68f1d2e7aa21029d73c7d453a8046e95d351740
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ static int __hw_perf_counter_init(struct perf_counter *counter)
return -EACCES;
hwc->nmi = 1;
}
perf_counters_lapic_init(hwc->nmi);

if (!hwc->irq_period)
hwc->irq_period = x86_pmu.max_period;
Expand Down Expand Up @@ -603,8 +604,6 @@ static int x86_pmu_enable(struct perf_counter *counter)
hwc->counter_base = x86_pmu.perfctr;
}

perf_counters_lapic_init(hwc->nmi);

x86_pmu.disable(hwc, idx);

cpuc->counters[idx] = counter;
Expand Down Expand Up @@ -1054,7 +1053,7 @@ void __init init_hw_perf_counters(void)

pr_info("... counter mask: %016Lx\n", perf_counter_mask);

perf_counters_lapic_init(0);
perf_counters_lapic_init(1);
register_die_notifier(&perf_counter_nmi_notifier);
}

Expand Down

0 comments on commit 45a9ce0

Please sign in to comment.