]> Gentwo Git Trees - linux/.git/commit
s390/pai_crypto: Introduce generic event init using pai_pmu[]
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:47 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:05 +0000 (11:30 +0100)
commit413957980ac86d04afa6a634eaab1182dcd8c6c3
tree20ea9c50d07cbf589883f5a9f7d5b41a4d8caaeb
parenta3f8423622ef34cca050816c49be4291f9f41b1d
s390/pai_crypto: Introduce generic event init using pai_pmu[]

To support one common PAI PMU device driver which handles
both PMUs pai_crypto and pai_ext, use a common naming scheme
for structures and variables suitable for both device drivers.

Rework PAI crypto event initialization. Add a common
function for event initialization. It uses the PAI characteristics
stored in the pai_pmu table instead of hardcoded values.
Enlarge pai_event_valid() to check all event validation aspects.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/pai.h
arch/s390/kernel/perf_pai_crypto.c