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 <rananta@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Raghavendra Rao Ananta 2018-03-19 09:56:18 -07:00 committed by Gerrit - the friendly Code Review server
parent dce2fd4620
commit 45826d76e1

View File

@ -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;
}