]> git.baikalelectronics.ru Git - kernel.git/commit
perf/arm-cmn: Refactor node ID handling
authorRobin Murphy <robin.murphy@arm.com>
Fri, 3 Dec 2021 11:44:53 +0000 (11:44 +0000)
committerWill Deacon <will@kernel.org>
Tue, 14 Dec 2021 12:09:27 +0000 (12:09 +0000)
commit309035d34b6d9828754a3c25f1c68ab5a4a37621
treecad023497f00c2980c06bfc5df078134bc2e2413
parent7695a8ca2490f2d50bd152ab8708400a35432ba5
perf/arm-cmn: Refactor node ID handling

Add a bit more abstraction for the places where we decompose node IDs.
This will help keep things nice and manageable when we come to add yet
more variables which affect the node ID format. Also use the opportunity
to move the rest of the low-level node management helpers back up to the
logical place they were meant to be - how they ended up buried right in
the middle of the event-related definitions is somewhat of a mystery...

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