aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-02-27 16:16:38 +0000
committerJames Hogan <james.hogan@imgtec.com>2013-03-15 13:20:03 +0000
commitc6ac1e6edacc7e1fb0405d61f95a797c6a712411 (patch)
tree8794cd7bbb6873aaf5cafdaa75af0daf35409dfa /arch/alpha
parentdb59932f62386cdfd8510c27a83118c5e915e9ea (diff)
downloadkernel_goldelico_gta04-c6ac1e6edacc7e1fb0405d61f95a797c6a712411.zip
kernel_goldelico_gta04-c6ac1e6edacc7e1fb0405d61f95a797c6a712411.tar.gz
kernel_goldelico_gta04-c6ac1e6edacc7e1fb0405d61f95a797c6a712411.tar.bz2
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>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions