Commit 0f1c0d75 authored by Thomas Richter's avatar Thomas Richter Committed by Heiko Carstens
Browse files

s390/pai_crypto: Rename paicrypt_have_samples() to pai_have_samples()



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: default avatarThomas Richter <tmricht@linux.ibm.com>
Reviewed-by: default avatarJan Polensky <japo@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 360e180d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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