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

This reverts commit 81331211.

This revert was requested by the author of the patch as it seems
to cause system hangs with some low frequency events
上级 18673533
无相关合并请求
...@@ -1463,7 +1463,7 @@ static void perf_event_interrupt(struct pt_regs *regs) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部