drivers: perf: arm_pmuv3: Add new macro PMUV3_INIT_MAP_EVENT()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Tue, 14 Nov 2023 06:16:56 +0000 (11:46 +0530)
committerWill Deacon <will@kernel.org>
Tue, 5 Dec 2023 12:33:30 +0000 (12:33 +0000)
commit877806b9b41ea371defaaf58d815320f1a76384f
treea177d5601dee8623a2d62bced40a852a323cad50
parent590f23b092401f29e410fd4ca67128fcc45192fc
drivers: perf: arm_pmuv3: Add new macro PMUV3_INIT_MAP_EVENT()

This further compacts all remaining PMU init procedures requiring specific
map_event functions via a new macro PMUV3_INIT_MAP_EVENT(). While here, it
also changes generated init function names to match to those generated via
the other macro PMUV3_INIT_SIMPLE(). This does not cause functional change.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231114061656.337231-1-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmuv3.c