Skip to content

Commit a33d4d5

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/arc/kernel/perf_event.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,8 @@ static irqreturn_t arc_pmu_intr(int irq, void *dev)
599599

600600
arc_perf_event_update(event, &event->hw, event->hw.idx);
601601
perf_sample_data_init(&data, 0, hwc->last_period);
602-
if (arc_pmu_event_set_period(event)) {
603-
if (perf_event_overflow(event, &data, regs))
604-
arc_pmu_stop(event, 0);
605-
}
602+
if (arc_pmu_event_set_period(event))
603+
perf_event_overflow(event, &data, regs);
606604

607605
active_ints &= ~BIT(idx);
608606
} while (active_ints);

0 commit comments

Comments
 (0)