From 45826d76e1b5114e873db1ac9eb540f831ba3644 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: Elliot Berman --- 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 70968c8c09d7..c4b282dcb5f8 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -582,6 +582,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; }