History

xtensa/perf: Remove driver-specific throttle support

The throttle support has been added in the generic code. Remove the driver-specific throttle support. Besides the throttle, perf_event_overflow may return true because of event_limit. It already does an inatomic event disable. The pmu->stop is not required either.

Kan Liang committed 1 year ago

Commit 5fa541a1 parent e4806c11 file · +1 −2Browse files

Unified · Split

arch/xtensa/kernel/perf_event.c+1−2
@@ -388,8 +388,7 @@ irqreturn_t xtensa_pmu_irq_handler(int irq, void *dev_id) · 387 unmodified lines
388388 struct pt_regs *regs = get_irq_regs();
389389
390390 perf_sample_data_init(&data, 0, last_period);
391− if (perf_event_overflow(event, &data, regs))
392− xtensa_pmu_stop(event, 0);
391+ perf_event_overflow(event, &data, regs);
393392 }
394393
395394 rc = IRQ_HANDLED;