[PATCH openEuler-5.10 18/82] arm64: wrap and generalise counter read functions