Skip to content

Commit 954617a

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
powerpc/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 6693da2 commit 954617a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

arch/powerpc/perf/core-book3s.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,12 +2344,10 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
23442344
ppmu->get_mem_weight(&data.weight.full, event->attr.sample_type);
23452345
data.sample_flags |= PERF_SAMPLE_WEIGHT_TYPE;
23462346
}
2347-
if (perf_event_overflow(event, &data, regs))
2348-
power_pmu_stop(event, 0);
2347+
perf_event_overflow(event, &data, regs);
23492348
} else if (period) {
23502349
/* Account for interrupt in case of invalid SIAR */
2351-
if (perf_event_account_interrupt(event))
2352-
power_pmu_stop(event, 0);
2350+
perf_event_account_interrupt(event);
23532351
}
23542352
}
23552353

arch/powerpc/perf/core-fsl-emb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
635635

636636
perf_sample_data_init(&data, 0, last_period);
637637

638-
if (perf_event_overflow(event, &data, regs))
639-
fsl_emb_pmu_stop(event, 0);
638+
perf_event_overflow(event, &data, regs);
640639
}
641640
}
642641

0 commit comments

Comments
 (0)