diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-10-18 01:36:11 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-10-18 01:36:11 +0200 |
commit | 72523d8082df3d89bffe30cbc1356dbb45ab51ae (patch) | |
tree | 54e18a4ca7d7a279a260902a93f190078225097f /arch/powerpc/perf | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-72523d8082df3d89bffe30cbc1356dbb45ab51ae.tar.xz linux-72523d8082df3d89bffe30cbc1356dbb45ab51ae.zip |
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); |