Skip to content

Commit 8c977a1

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

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

arch/alpha/kernel/perf_event.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -852,14 +852,9 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
852852
alpha_perf_event_update(event, hwc, idx, alpha_pmu->pmc_max_period[idx]+1);
853853
perf_sample_data_init(&data, 0, hwc->last_period);
854854

855-
if (alpha_perf_event_set_period(event, hwc, idx)) {
856-
if (perf_event_overflow(event, &data, regs)) {
857-
/* Interrupts coming too quickly; "throttle" the
858-
* counter, i.e., disable it for a little while.
859-
*/
860-
alpha_pmu_stop(event, 0);
861-
}
862-
}
855+
if (alpha_perf_event_set_period(event, hwc, idx))
856+
perf_event_overflow(event, &data, regs);
857+
863858
wrperfmon(PERFMON_CMD_ENABLE, cpuc->idx_mask);
864859

865860
return;

0 commit comments

Comments
 (0)