Skip to content
Commit 44fdf4ed authored by Qi Liu's avatar Qi Liu Committed by Will Deacon
Browse files

arm64: perf: Remove unnecessary event_idx check



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: default avatarQi Liu <liuqi115@huawei.com>
Link: https://lore.kernel.org/r/1599213458-28394-1-git-send-email-liuqi115@huawei.com
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent d51eb416
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment