]> 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)
commit522670aba722462cc321b5dd27b8d130effb9435
treecad023497f00c2980c06bfc5df078134bc2e2413
parent2119a99847de88874d665e045a19ee7b255bf3ef
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