mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
c6ac1e6eda
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> |
||
---|---|---|
.. | ||
perf | ||
.gitignore | ||
asm-offsets.c | ||
cachepart.c | ||
clock.c | ||
core_reg.c | ||
da.c | ||
devtree.c | ||
dma.c | ||
ftrace_stub.S | ||
ftrace.c | ||
head.S | ||
irq.c | ||
kick.c | ||
machines.c | ||
Makefile | ||
metag_ksyms.c | ||
module.c | ||
perf_callchain.c | ||
process.c | ||
ptrace.c | ||
setup.c | ||
signal.c | ||
smp.c | ||
stacktrace.c | ||
sys_metag.c | ||
tbiunexp.S | ||
tcm.c | ||
time.c | ||
topology.c | ||
traps.c | ||
user_gateway.S | ||
vmlinux.lds.S |