소스 검색

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
Benjamin Herrenschmidt 13 년 전
부모
커밋
72523d8082
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/powerpc/perf/core-book3s.c

+ 1 - 1
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))
 		if (!event->hw.idx || is_limited_pmc(event->hw.idx))
 			continue;
 			continue;
 		val = read_pmc(event->hw.idx);
 		val = read_pmc(event->hw.idx);
-		if (pmc_overflow(val)) {
+		if ((int)val < 0) {
 			/* event has overflowed */
 			/* event has overflowed */
 			found = 1;
 			found = 1;
 			record_and_restart(event, val, regs);
 			record_and_restart(event, val, regs);