]> Gentwo Git Trees - linux/.git/commit
s390/pai_crypto: Add common pai_start() function
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:54 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:06 +0000 (11:30 +0100)
commit6fe66b21570f138017ee493b72cd4f724c8f1df1
tree39142e49ad3ac28eb312d9c8acb37068c30bf970
parent8f6116fd4940ad60adbfaca3525567b087054b5b
s390/pai_crypto: Add common pai_start() function

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.

Add a common usable function pai_start() to the event on a CPU.
The function expects a PAI PMU specific read function as second
parameter to read out the start value for an event.

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/kernel/perf_pai_crypto.c