Commit f5c4ec8d authored by Robin Murphy's avatar Robin Murphy Committed by Greg Kroah-Hartman
Browse files

perf/arm-cmn: Rework DTC counters (again)



[ Upstream commit 7633ec2c ]

The bitmap-based scheme for tracking DTC counter usage turns out to be a
complete dead-end for its imagined purpose, since by the time we have to
keep track of a per-DTC counter index anyway, we already have enough
information to make the bitmap itself redundant. Revert the remains of
it back to almost the original scheme, but now expanded to track per-DTC
indices, in preparation for making use of them in anger.

Note that since cycle count events always use a dedicated counter on a
single DTC, we reuse the field to encode their DTC index directly.

Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Reviewed-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/5f6ade76b47f033836d7a36c03555da896dfb4a3.1697824215.git.robin.murphy@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
Stable-dep-of: e79634b5 ("perf/arm-cmn: Refactor node ID handling. Again.")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 814b8bc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment