Commit f8f89e8c authored by Yicong Yang's avatar Yicong Yang Committed by Will Deacon
Browse files

perf: arm_pmuv3: Factor out PMCCNTR_EL0 use conditions



PMCCNTR_EL0 is preferred for counting CPU_CYCLES under certain
conditions. Factor out the condition check to a separate function
for further extension. Add documents for better understanding.
No functional changes intended.

Reviewed-by: default avatarJames Clark <james.clark@linaro.org>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 00d7a1af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment