Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events"
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 17 Oct 2012 23:36:11 +0000 (10:36 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 17 Oct 2012 23:36:11 +0000 (10:36 +1100)
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

arch/powerpc/perf/core-book3s.c

index 0db88f501f91c953c86dcbef4ab2d768be126f9d..aa2465e21f1a87b989e49eae2027fee72dc4948f 100644 (file)
@@ -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);