From: James Hogan Date: Wed, 27 Feb 2013 16:16:38 +0000 (+0000) Subject: metag: perf: fix frequency sampling (dynamic period) X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~101^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2033dc54e6fffac01f6129c0038c2e78102cf59a;p=pandora-kernel.git 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 Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed