Skip to content

Commit f124735

Browse files
Thomas Richterhcahca
authored andcommitted
s390/pai_crypto: Rename paicrypt_copy() to pai_copy()
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_copy() to pai_copy() to indicate 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>
1 parent 42e6a0f commit f124735

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

arch/s390/kernel/perf_pai_crypto.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ static void paicrypt_del(struct perf_event *event, int flags)
485485
* 2 bytes: Number of counter
486486
* 8 bytes: Value of counter
487487
*/
488-
static size_t paicrypt_copy(struct pai_userdata *userdata, unsigned long *page,
489-
struct pai_pmu *pp, unsigned long *page_old,
490-
bool exclude_user, bool exclude_kernel)
488+
static size_t pai_copy(struct pai_userdata *userdata, unsigned long *page,
489+
struct pai_pmu *pp, unsigned long *page_old,
490+
bool exclude_user, bool exclude_kernel)
491491
{
492492
int i, outidx = 0;
493493

@@ -578,10 +578,10 @@ static void pai_have_sample(struct perf_event *event, struct pai_map *cpump)
578578
if (!event) /* No event active */
579579
return;
580580
pp = &pai_pmu[PAI_PMU_IDX(event)];
581-
rawsize = paicrypt_copy(cpump->save, cpump->area, pp,
582-
(unsigned long *)PAI_SAVE_AREA(event),
583-
event->attr.exclude_user,
584-
event->attr.exclude_kernel);
581+
rawsize = pai_copy(cpump->save, cpump->area, pp,
582+
(unsigned long *)PAI_SAVE_AREA(event),
583+
event->attr.exclude_user,
584+
event->attr.exclude_kernel);
585585
if (rawsize) /* No incremented counters */
586586
pai_push_sample(rawsize, cpump, event);
587587
}

0 commit comments

Comments
 (0)