Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178775
b: refs/heads/master
c: e04ed38
h: refs/heads/master
i:
  178773: 37bae89
  178771: 878b033
  178767: bfc60bf
v: v3
  • Loading branch information
David S. Miller committed Jan 5, 2010
1 parent f938817 commit a8fc456
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8183e2b38480672a1f61d416812ac078ce94b67b
refs/heads/master: e04ed38d4e0cd32141f723560efcc8252b0241e2
11 changes: 11 additions & 0 deletions trunk/arch/sparc/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,17 @@ static int __kprobes perf_event_nmi_handler(struct notifier_block *self,
data.addr = 0;

cpuc = &__get_cpu_var(cpu_hw_events);

/* If the PMU has the TOE IRQ enable bits, we need to do a
* dummy write to the %pcr to clear the overflow bits and thus
* the interrupt.
*
* Do this before we peek at the counters to determine
* overflow so we don't lose any events.
*/
if (sparc_pmu->irq_bit)
pcr_ops->write(cpuc->pcr);

for (idx = 0; idx < MAX_HWEVENTS; idx++) {
struct perf_event *event = cpuc->events[idx];
struct hw_perf_event *hwc;
Expand Down

0 comments on commit a8fc456

Please sign in to comment.