Skip to content

Commit b82f888

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
loongarch/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 141fede commit b82f888

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/loongarch/kernel/perf_event.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ static void handle_associated_event(struct cpu_hw_events *cpuc, int idx,
479479
if (!loongarch_pmu_event_set_period(event, hwc, idx))
480480
return;
481481

482-
if (perf_event_overflow(event, data, regs))
483-
loongarch_pmu_disable_event(idx);
482+
perf_event_overflow(event, data, regs);
484483
}
485484

486485
static irqreturn_t pmu_handle_irq(int irq, void *dev)

0 commit comments

Comments
 (0)