]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/pai_crypto: Rename paicrypt_have_samples() to pai_have_samples()
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:51 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:06 +0000 (11:30 +0100)
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.
Rename paicrypt_have_samples() to pai_have_samples() to reflect
its common usage. No functional change.

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

index 33af05b91874870b79e4e700607279f82d30012a..f7d846262a5b3ffd9a209aa6b08033f229e863a0 100644 (file)
@@ -542,7 +542,7 @@ static void pai_have_sample(struct perf_event *event, struct pai_map *cpump)
 }
 
 /* Check if there is data to be saved on schedule out of a task. */
-static void paicrypt_have_samples(void)
+static void pai_have_samples(void)
 {
        struct pai_mapptr *mp = this_cpu_ptr(pai_root.mapptr);
        struct pai_map *cpump = mp->mapptr;
@@ -562,7 +562,7 @@ static void paicrypt_sched_task(struct perf_event_pmu_context *pmu_ctx,
         * results on schedule_out and if page was dirty, save old values.
         */
        if (!sched_in)
-               paicrypt_have_samples();
+               pai_have_samples();
 }
 
 /* Attribute definitions for paicrypt interface. As with other CPU