perf/arm-cmn: Optimise DTM counter reads
authorRobin Murphy <robin.murphy@arm.com>
Fri, 3 Dec 2021 11:44:56 +0000 (11:44 +0000)
committerWill Deacon <will@kernel.org>
Tue, 14 Dec 2021 12:09:27 +0000 (12:09 +0000)
commit847eef94e6327dd7690bfac0bd3a81a7ba6aa1ee
treecbb3ff54d28c617f300ebb7eb8fb0666a1b6b31e
parent0947c80aba23972987a88e620812d17a7af27297
perf/arm-cmn: Optimise DTM counter reads

When multiple nodes of the same type are connected to the same XP
(particularly in CAL configurations), it seems that they are likely
to be consecutive in logical ID. Therefore, we're likely to gain a
small benefit from an easy tweak to optimise out consecutive reads
of the same set of DTM counters for an aggregated event.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7777d77c2df17693cd3dabb6e268906e15238d82.1638530442.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c