Skip to content

Commit 141fede

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
csky/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: Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a33d4d5 commit 141fede

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/csky/kernel/perf_event.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,7 @@ static irqreturn_t csky_pmu_handle_irq(int irq_num, void *dev)
11391139
perf_sample_data_init(&data, 0, hwc->last_period);
11401140
csky_pmu_event_set_period(event);
11411141

1142-
if (perf_event_overflow(event, &data, regs))
1143-
csky_pmu_stop_event(event);
1142+
perf_event_overflow(event, &data, regs);
11441143
}
11451144

11461145
csky_pmu_enable(&csky_pmu.pmu);

0 commit comments

Comments
 (0)