Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events"

This reverts commit 813312110b.

This revert was requested by the author of the patch as it seems
to cause system hangs with some low frequency events
This commit is contained in:
Benjamin Herrenschmidt 2012-10-18 10:36:11 +11:00
Родитель 1867353325
Коммит 72523d8082
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);