perf/arm_cspmu: Simplify attribute groups
authorRobin Murphy <robin.murphy@arm.com>
Tue, 6 Feb 2024 10:27:55 +0000 (10:27 +0000)
committerWill Deacon <will@kernel.org>
Fri, 9 Feb 2024 17:34:35 +0000 (17:34 +0000)
commit7e6a3c3f85886f5e54dba5eb3bee7f5400685e95
tree3c17f91475c02f47be9c815424b87b70d08acd46
parentdf2675ad7748ea1a4bdb47f9835a30f50d4dc5ea
perf/arm_cspmu: Simplify attribute groups

The attribute group array itself is always the same, so there's no
need to allocate it separately. Storing it directly in our instance
data saves memory and gives us one less point of failure.

Reviewed-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/cf12b803114b0815438833fcb2495f20f2007761.1706718007.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_cspmu/arm_cspmu.c
drivers/perf/arm_cspmu/arm_cspmu.h