Commit e09e58f4 authored by Thomas Richter's avatar Thomas Richter Committed by Vasily Gorbik

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: default avatarThomas Richter <tmricht@linux.ibm.com>
Acked-by: default avatarSumanth 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: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 6bc565a9
...@@ -610,23 +610,23 @@ static DEFINE_MUTEX(pmc_reserve_mutex); ...@@ -610,23 +610,23 @@ static DEFINE_MUTEX(pmc_reserve_mutex);
#define PMC_FAILURE 2 #define PMC_FAILURE 2
static void setup_pmc_cpu(void *flags) 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; int err = 0;
switch (*((int *)flags)) { switch (*((int *)flags)) {
case PMC_INIT: case PMC_INIT:
memset(cpusf, 0, sizeof(*cpusf)); memset(cpuhw, 0, sizeof(*cpuhw));
err = qsi(&cpusf->qsi); err = qsi(&cpuhw->qsi);
if (err) if (err)
break; break;
cpusf->flags |= PMU_F_RESERVED; cpuhw->flags |= PMU_F_RESERVED;
err = sf_disable(); err = sf_disable();
break; break;
case PMC_RELEASE: case PMC_RELEASE:
cpusf->flags &= ~PMU_F_RESERVED; cpuhw->flags &= ~PMU_F_RESERVED;
err = sf_disable(); err = sf_disable();
if (!err) if (!err)
deallocate_buffers(cpusf); deallocate_buffers(cpuhw);
break; break;
} }
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment