Skip to content

Commit 5fa541a

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
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. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Max Filippov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e4806c1 commit 5fa541a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/xtensa/kernel/perf_event.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ irqreturn_t xtensa_pmu_irq_handler(int irq, void *dev_id)
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;

0 commit comments

Comments
 (0)