summaryrefslogtreecommitdiff
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2025-11-05 15:38:40 +0100
committerHeiko Carstens <hca@linux.ibm.com>2025-11-14 11:30:04 +0100
commitabc524caa1382a56f82d07d0621b7fa80f33e207 (patch)
tree2ba0d1545c71935c5f1f39bb3b641f2db3df45e3 /arch/s390/kernel
parentc1287d67c3a91aa19e4d9bbd3ad943cfbfa6bed4 (diff)
s390/pai_crypto: Rename variable cfm_dbg
The global variable cfm_dbg points to the s390dbf debug buffer. Rename it to paidbg to better reflect its purpose. 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>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/perf_pai_crypto.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/s390/kernel/perf_pai_crypto.c b/arch/s390/kernel/perf_pai_crypto.c
index 9b06b8a83342..ff0be76e4441 100644
--- a/arch/s390/kernel/perf_pai_crypto.c
+++ b/arch/s390/kernel/perf_pai_crypto.c
@@ -19,7 +19,7 @@
#include <asm/pai.h>
#include <asm/debug.h>
-static debug_info_t *cfm_dbg;
+static debug_info_t *paidbg;
static unsigned int paicrypt_cnt; /* Size of the mapped counter sets */
/* extracted with QPACI instruction */
@@ -55,7 +55,7 @@ static void paicrypt_root_free(void)
free_percpu(paicrypt_root.mapptr);
paicrypt_root.mapptr = NULL;
}
- debug_sprintf_event(cfm_dbg, 5, "%s root.refcount %d\n", __func__,
+ debug_sprintf_event(paidbg, 5, "%s root.refcount %d\n", __func__,
refcount_read(&paicrypt_root.refcnt));
}
@@ -98,7 +98,7 @@ static void paicrypt_event_destroy_cpu(struct perf_event *event, int cpu)
struct paicrypt_map *cpump = mp->mapptr;
mutex_lock(&pai_reserve_mutex);
- debug_sprintf_event(cfm_dbg, 5, "%s event %#llx cpu %d users %d "
+ debug_sprintf_event(paidbg, 5, "%s event %#llx cpu %d users %d "
"refcnt %u\n", __func__, event->attr.config,
event->cpu, cpump->active_events,
refcount_read(&cpump->refcnt));
@@ -822,19 +822,19 @@ static int __init paicrypt_init(void)
}
/* Setup s390dbf facility */
- cfm_dbg = debug_register(KMSG_COMPONENT, 2, 256, 128);
- if (!cfm_dbg) {
+ paidbg = debug_register(KMSG_COMPONENT, 2, 256, 128);
+ if (!paidbg) {
pr_err("Registration of s390dbf pai_crypto failed\n");
return -ENOMEM;
}
- debug_register_view(cfm_dbg, &debug_sprintf_view);
+ debug_register_view(paidbg, &debug_sprintf_view);
rc = perf_pmu_register(&paicrypt, "pai_crypto", -1);
if (rc) {
pr_err("Registering the pai_crypto PMU failed with rc=%i\n",
rc);
- debug_unregister_view(cfm_dbg, &debug_sprintf_view);
- debug_unregister(cfm_dbg);
+ debug_unregister_view(paidbg, &debug_sprintf_view);
+ debug_unregister(paidbg);
return rc;
}
return 0;