Re: [PATCH] arm64: perf: Remove unnecessary event_idx check

2020-09-07 Thread Will Deacon
On Fri, 4 Sep 2020 17:57:38 +0800, Qi Liu wrote: > event_idx is obtained from armv8pmu_get_event_idx(), and this idx must be > between ARMV8_IDX_CYCLE_COUNTER and cpu_pmu->num_events. So it's unnecessary > to do this check. Let's remove it. Applied to will (for-next/perf), thanks! [1/1] arm64: pe

[PATCH] arm64: perf: Remove unnecessary event_idx check

2020-09-04 Thread Qi Liu
event_idx is obtained from armv8pmu_get_event_idx(), and this idx must be between ARMV8_IDX_CYCLE_COUNTER and cpu_pmu->num_events. So it's unnecessary to do this check. Let's remove it. Signed-off-by: Qi Liu --- arch/arm64/kernel/perf_event.c | 20 ++-- 1 file changed, 2 insertio