summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/arm64/util/pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/arch/arm64/util/pmu.c')
-rw-r--r--tools/perf/arch/arm64/util/pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/arm64/util/pmu.c b/tools/perf/arch/arm64/util/pmu.c
index fa143acb4c8d..ef1ed645097c 100644
--- a/tools/perf/arch/arm64/util/pmu.c
+++ b/tools/perf/arch/arm64/util/pmu.c
@@ -18,7 +18,7 @@ static struct perf_pmu *pmu__find_core_pmu(void)
* The cpumap should cover all CPUs. Otherwise, some CPUs may
* not support some events or have different event IDs.
*/
- if (pmu->cpus->nr != cpu__max_cpu().cpu)
+ if (RC_CHK_ACCESS(pmu->cpus)->nr != cpu__max_cpu().cpu)
return NULL;
return pmu;