aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx/wg302v2-setup.c
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:07 +0000
commit2033dc54e6fffac01f6129c0038c2e78102cf59a (patch)
treed5c674bec7f7d941ef70d430ed95144d793d9256 /arch/arm/mach-ixp4xx/wg302v2-setup.c
parentc6ac1e6edacc7e1fb0405d61f95a797c6a712411 (diff)
downloadkernel_goldelico_gta04-2033dc54e6fffac01f6129c0038c2e78102cf59a.zip
kernel_goldelico_gta04-2033dc54e6fffac01f6129c0038c2e78102cf59a.tar.gz
kernel_goldelico_gta04-2033dc54e6fffac01f6129c0038c2e78102cf59a.tar.bz2
metag: perf: fix frequency sampling (dynamic period)
Frequency sampling mode dynamically adjusts the sample period so as to hit a particular frequency of samples. The sample period starts at just 1 and then gets increased if the interrupt rate is too high. This changed sample period needs handling in metag_pmu_event_set_period to update period_left (as the ARM equivalent does). The calculated delta also needs subtracting from period_left in metag_pmu_event_update in order to hit the conditional blocks in metag_pmu_event_set_period which update last_period (which is used in the dynamic sampling period calculation). 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/arm/mach-ixp4xx/wg302v2-setup.c')
0 files changed, 0 insertions, 0 deletions