diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-10-18 10:36:11 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-10-18 10:36:11 +1100 |
commit | 72523d8082df3d89bffe30cbc1356dbb45ab51ae (patch) | |
tree | 54e18a4ca7d7a279a260902a93f190078225097f /arch/powerpc/perf | |
parent | 18673533256a2953ccefded52df2679de8640685 (diff) |
Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events"
This reverts commit 813312110bede27bffd082c25cd31730bd567beb.
This revert was requested by the author of the patch as it seems
to cause system hangs with some low frequency events
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/core-book3s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 0db88f501f91..aa2465e21f1a 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c @@ -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); |