Skip to content

Commit f1a6fe2

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
perf/apple_m1: 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]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1507376 commit f1a6fe2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/perf/apple_m1_cpu_pmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,7 @@ static irqreturn_t m1_pmu_handle_irq(struct arm_pmu *cpu_pmu)
474474
if (!armpmu_event_set_period(event))
475475
continue;
476476

477-
if (perf_event_overflow(event, &data, regs))
478-
m1_pmu_disable_event(event);
477+
perf_event_overflow(event, &data, regs);
479478
}
480479

481480
cpu_pmu->start(cpu_pmu);

0 commit comments

Comments
 (0)