From cfd13c076e3b58d1f63f27000f35189bd6e0743d Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Mon, 19 Mar 2018 09:56:18 -0700 Subject: [PATCH] perf: Set the DSU PMU to be readable from any CPU Usually, the perf core assumes that the PMU is attached to a particular processor core and ignores the event to be read if that particular CPU is idle. However, the DSU PMU isn't attached to any core. In fact, it is common for all the cores and the event can be safely read from any cpu. As a result, initialize the event to achieve the same. Change-Id: I5037e749019471476369bdf818602faa70de26a6 Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Rishabh Bhatnagar --- drivers/perf/arm_dsu_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index 660cb8ac886a..98dc93dbb7b4 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -591,6 +591,7 @@ static int dsu_pmu_event_init(struct perf_event *event) return -EINVAL; event->hw.config_base = event->attr.config; + event->readable_on_cpus = CPU_MASK_ALL; return 0; }