2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 02:34:01 +08:00
linux-next/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 metag: Build infrastructure 2013-03-02 20:09:54 +00:00
asm-offsets.c metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cachepart.c metag: SMP support 2013-03-02 20:09:51 +00:00
clock.c metag: Time keeping 2013-03-02 20:09:22 +00:00
core_reg.c metag: SMP support 2013-03-02 20:09:51 +00:00
da.c metag: Add JTAG Debug Adapter (DA) support 2013-03-02 20:09:56 +00:00
devtree.c metag: copy devicetree to non-init memory 2013-03-02 20:11:17 +00:00
dma.c metag: DMA 2013-03-02 20:09:51 +00:00
ftrace_stub.S metag: ftrace support 2013-03-02 20:09:55 +00:00
ftrace.c metag: ftrace support 2013-03-02 20:09:55 +00:00
head.S metag: SMP support 2013-03-02 20:09:51 +00:00
irq.c metag: Internal and external irqchips 2013-03-02 20:09:48 +00:00
kick.c metag: move kick.c exports out of metag_ksyms.c 2013-03-02 20:11:15 +00:00
machines.c
Makefile metag: Add JTAG Debug Adapter (DA) support 2013-03-02 20:09:56 +00:00
metag_ksyms.c metag: cleanup metag_ksyms.c includes 2013-03-02 20:11:16 +00:00
module.c metag: Module support 2013-03-02 20:09:49 +00:00
perf_callchain.c metag: Perf 2013-03-02 20:09:54 +00:00
process.c metag: Scheduling/Process management 2013-03-02 20:09:49 +00:00
ptrace.c metag: ptrace 2013-03-02 20:09:22 +00:00
setup.c metag: copy devicetree to non-init memory 2013-03-02 20:11:17 +00:00
signal.c metag: Signal handling 2013-03-02 20:09:21 +00:00
smp.c metag: protect more non-MMU memory regions 2013-03-02 20:09:58 +00:00
stacktrace.c metag: Stack unwinding 2013-03-02 20:09:52 +00:00
sys_metag.c metag: System Calls 2013-03-02 20:09:49 +00:00
tbiunexp.S metag: Traps 2013-03-02 20:09:45 +00:00
tcm.c
time.c metag: Time keeping 2013-03-02 20:09:22 +00:00
topology.c metag: SMP support 2013-03-02 20:09:51 +00:00
traps.c ImgTec Meta architecture changes for v3.9-rc1 2013-03-03 12:06:09 -08:00
user_gateway.S metag: System Calls 2013-03-02 20:09:49 +00:00
vmlinux.lds.S metag: Build infrastructure 2013-03-02 20:09:54 +00:00