Skip to content

Commit 6693da2

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
perf/x86/zhaoxin: 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 d058c7d commit 6693da2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/events/zhaoxin/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,7 @@ static int zhaoxin_pmu_handle_irq(struct pt_regs *regs)
397397
if (!x86_perf_event_set_period(event))
398398
continue;
399399

400-
if (perf_event_overflow(event, &data, regs))
401-
x86_pmu_stop(event, 0);
400+
perf_event_overflow(event, &data, regs);
402401
}
403402

404403
/*

0 commit comments

Comments
 (0)