mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
s390/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 <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Thomas Richter <tmricht@linux.ibm.com> Link: https://lore.kernel.org/r/20250520181644.2673067-8-kan.liang@linux.intel.com
This commit is contained in:
parent
954617a7cc
commit
6792f74e8d
|
|
@ -980,8 +980,6 @@ static int cfdiag_push_sample(struct perf_event *event,
|
|||
}
|
||||
|
||||
overflow = perf_event_overflow(event, &data, ®s);
|
||||
if (overflow)
|
||||
event->pmu->stop(event, 0);
|
||||
|
||||
perf_event_update_userpage(event);
|
||||
return overflow;
|
||||
|
|
|
|||
|
|
@ -1072,10 +1072,7 @@ static int perf_push_sample(struct perf_event *event,
|
|||
overflow = 0;
|
||||
if (perf_event_exclude(event, ®s, sde_regs))
|
||||
goto out;
|
||||
if (perf_event_overflow(event, &data, ®s)) {
|
||||
overflow = 1;
|
||||
event->pmu->stop(event, 0);
|
||||
}
|
||||
overflow = perf_event_overflow(event, &data, ®s);
|
||||
perf_event_update_userpage(event);
|
||||
out:
|
||||
return overflow;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user