projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc: Fix unpaired probe_hcall_entry and probe_hcall_exit
[platform/kernel/linux-starfive.git]
/
arch
/
powerpc
/
platforms
/
pseries
/
hvCall_inst.c
diff --git
a/arch/powerpc/platforms/pseries/hvCall_inst.c
b/arch/powerpc/platforms/pseries/hvCall_inst.c
index
f106662
..
c9311cf
100644
(file)
--- a/
arch/powerpc/platforms/pseries/hvCall_inst.c
+++ b/
arch/powerpc/platforms/pseries/hvCall_inst.c
@@
-109,7
+109,7
@@
static void probe_hcall_entry(void *ignored, unsigned long opcode, unsigned long
if (opcode > MAX_HCALL_OPCODE)
return;
if (opcode > MAX_HCALL_OPCODE)
return;
- h = &get_cpu_var(hcall_stats)[opcode / 4];
+ h = &
__
get_cpu_var(hcall_stats)[opcode / 4];
h->tb_start = mftb();
h->purr_start = mfspr(SPRN_PURR);
}
h->tb_start = mftb();
h->purr_start = mfspr(SPRN_PURR);
}
@@
-126,8
+126,6
@@
static void probe_hcall_exit(void *ignored, unsigned long opcode, unsigned long
h->num_calls++;
h->tb_total += mftb() - h->tb_start;
h->purr_total += mfspr(SPRN_PURR) - h->purr_start;
h->num_calls++;
h->tb_total += mftb() - h->tb_start;
h->purr_total += mfspr(SPRN_PURR) - h->purr_start;
-
- put_cpu_var(hcall_stats);
}
static int __init hcall_inst_init(void)
}
static int __init hcall_inst_init(void)