aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries
diff options
context:
space:
mode:
authorWill Schmidt <will_schmidt@vnet.ibm.com>2009-11-25 06:12:09 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-09 13:55:05 +1100
commit25ef231de2678690198d95dca949c3caa67a76de (patch)
tree5b0b42dd17aa4fbac0ca8ed8728f21216903ec89 /arch/powerpc/platforms/pseries
parentpowerpc/pseries: Pass more accurate number of supported cores to firmware (diff)
downloadlinux-dev-25ef231de2678690198d95dca949c3caa67a76de.tar.xz
linux-dev-25ef231de2678690198d95dca949c3caa67a76de.zip
powerpc/pseries: Hypervisor call tracepoints hcall_stats touchup
The tb_total and purr_total values reported via the hcall_stats code should be cumulative, rather than being replaced by the latest delta tb or purr value. Tested-by: Will Schmidt <will_schmidt@vnet.ibm.com> Signed-off-by: Will Schmidt <will_schmidt@vnet.ibm.com> Acked-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r--arch/powerpc/platforms/pseries/hvCall_inst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c
index 2f58c71b7259..1fefae76e295 100644
--- a/arch/powerpc/platforms/pseries/hvCall_inst.c
+++ b/arch/powerpc/platforms/pseries/hvCall_inst.c
@@ -124,8 +124,8 @@ static void probe_hcall_exit(unsigned long opcode, unsigned long retval,
h = &__get_cpu_var(hcall_stats)[opcode / 4];
h->num_calls++;
- h->tb_total = mftb() - h->tb_start;
- h->purr_total = mfspr(SPRN_PURR) - h->purr_start;
+ h->tb_total += mftb() - h->tb_start;
+ h->purr_total += mfspr(SPRN_PURR) - h->purr_start;
put_cpu_var(hcall_stats);
}