Skip to content

Commit

Permalink
Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events"
Browse files Browse the repository at this point in the history
This reverts commit 8133121.

This revert was requested by the author of the patch as it seems
to cause system hangs with some low frequency events
  • Loading branch information
ozbenh committed Oct 17, 2012
1 parent 1867353 commit 72523d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/perf/core-book3s.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ static void perf_event_interrupt(struct pt_regs *regs)
if (!event->hw.idx || is_limited_pmc(event->hw.idx))
continue;
val = read_pmc(event->hw.idx);
if (pmc_overflow(val)) {
if ((int)val < 0) {
/* event has overflowed */
found = 1;
record_and_restart(event, val, regs);
Expand Down

0 comments on commit 72523d8

Please sign in to comment.