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.
Unified · Split
| @@ -388,8 +388,7 @@ irqreturn_t xtensa_pmu_irq_handler(int irq, void *dev_id) · 387 unmodified lines | |||
| 388 | struct pt_regs *regs = get_irq_regs(); | 388 | struct pt_regs *regs = get_irq_regs(); |
| 389 | 389 | ||
| 390 | perf_sample_data_init(&data, 0, last_period); | 390 | perf_sample_data_init(&data, 0, last_period); |
| 391 | if (perf_event_overflow(event, &data, regs)) | 391 | perf_event_overflow(event, &data, regs); |
| 392 | xtensa_pmu_stop(event, 0); | ||
| 393 | } | 392 | } |
| 394 | 393 | ||
| 395 | rc = IRQ_HANDLED; | 394 | rc = IRQ_HANDLED; |