]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a7a758740fe3cd9ce5d9c45ef7d41c0bfb067cd
treecbb3ff54d28c617f300ebb7eb8fb0666a1b6b31e
parent1354a26f980b55e82ff196ca287232ca2e3ec433
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