aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Richter <[email protected]>2024-07-25 14:13:06 +0200
committerVasily Gorbik <[email protected]>2024-08-07 20:52:53 +0200
commite09e58f425ad42726c008673b490aef53da10f1f (patch)
tree0af91602f4014f4b522416ba49ef5825143713c6
parent6bc565a99e77c8ced71c1184cebe4dda3bb4fa73 (diff)
s390/cpum_sf: Use variable name cpuhw consistently
All functions but setup_pmc_cpu() use a local variable named cpuhw to refer to struct cpu_hw_sf. In setup_pmc_cpu() rename variable cpusf to cpuhw. This makes the naming scheme consistent with all other functions. No functional change. Signed-off-by: Thomas Richter <[email protected]> Acked-by: Sumanth Korikkar <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Alexander Gordeev <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
-rw-r--r--arch/s390/kernel/perf_cpum_sf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c
index 4d668b2ce64d..d87d58f2ec1b 100644
--- a/arch/s390/kernel/perf_cpum_sf.c
+++ b/arch/s390/kernel/perf_cpum_sf.c
@@ -610,23 +610,23 @@ static DEFINE_MUTEX(pmc_reserve_mutex);
#define PMC_FAILURE 2
static void setup_pmc_cpu(void *flags)
{
- struct cpu_hw_sf *cpusf = this_cpu_ptr(&cpu_hw_sf);
+ struct cpu_hw_sf *cpuhw = this_cpu_ptr(&cpu_hw_sf);
int err = 0;
switch (*((int *)flags)) {
case PMC_INIT:
- memset(cpusf, 0, sizeof(*cpusf));
- err = qsi(&cpusf->qsi);
+ memset(cpuhw, 0, sizeof(*cpuhw));
+ err = qsi(&cpuhw->qsi);
if (err)
break;
- cpusf->flags |= PMU_F_RESERVED;
+ cpuhw->flags |= PMU_F_RESERVED;
err = sf_disable();
break;
case PMC_RELEASE:
- cpusf->flags &= ~PMU_F_RESERVED;
+ cpuhw->flags &= ~PMU_F_RESERVED;
err = sf_disable();
if (!err)
- deallocate_buffers(cpusf);
+ deallocate_buffers(cpuhw);
break;
}
if (err) {