]> 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)
commit65769eb63229461cf48e483391ed9650326ad6e1
treecbb3ff54d28c617f300ebb7eb8fb0666a1b6b31e
parentfe2a5188789675d574bd4bf1856f9e53f6d2b550
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