linux/arch/metag/kernel
James Hogan c6ac1e6eda metag: perf: add missing prev_count updates
The prev_count needs setting when changing the counter value, otherwise
the calculated delta will be wrong, which for frequency sampling
(dynamic period sampling) results in sampling at too high a frequency.

For non-interrupting performance counters it should also be cleared when
enabling the counter since the write to the PERF_COUNT register will
clear the perf counter.

This also includes a minor change to remove the u64 cast from the
metag_pmu->write() call as metag_pmu->write() takes a u32 anyway, and in
any case GCC is smart enough to optimise away the cast.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
2013-03-15 13:20:03 +00:00
..
perf metag: perf: add missing prev_count updates 2013-03-15 13:20:03 +00:00
.gitignore
asm-offsets.c
cachepart.c
clock.c
core_reg.c
da.c
devtree.c metag: copy devicetree to non-init memory 2013-03-02 20:11:17 +00:00
dma.c
ftrace_stub.S
ftrace.c
head.S
irq.c
kick.c metag: move kick.c exports out of metag_ksyms.c 2013-03-02 20:11:15 +00:00
machines.c
Makefile
metag_ksyms.c metag: cleanup metag_ksyms.c includes 2013-03-02 20:11:16 +00:00
module.c
perf_callchain.c
process.c
ptrace.c
setup.c metag: copy devicetree to non-init memory 2013-03-02 20:11:17 +00:00
signal.c
smp.c metag: protect more non-MMU memory regions 2013-03-02 20:09:58 +00:00
stacktrace.c
sys_metag.c
tbiunexp.S
tcm.c
time.c
topology.c
traps.c ImgTec Meta architecture changes for v3.9-rc1 2013-03-03 12:06:09 -08:00
user_gateway.S
vmlinux.lds.S