]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/cpum_sf: Use variable name cpuhw consistently
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 25 Jul 2024 12:13:06 +0000 (14:13 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 7 Aug 2024 18:52:53 +0000 (20:52 +0200)
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 <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c

index 4d668b2ce64d62f4dfe07d873f0684c4cbcf74fa..d87d58f2ec1ba466f74a214033cf8692688089ee 100644 (file)
@@ -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) {