summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2020-02-05 15:28:01 -0800
committerStephen Boyd <sboyd@kernel.org>2020-02-12 15:27:11 -0800
commit0daa376d832f4ce585f153efee4233b52fa3fe58 (patch)
tree4b352a2fed2d72ea72eee48c808e91422cfd1e8a /tools/perf/scripts/python
parent768a5d4f63c29d3bed5abb3c187312fcf623fa05 (diff)
clk: Move rate and accuracy recalc to mostly consumer APIs
There's some confusion about when recalc is done for the rate and accuracy clk consumer APIs in relation to the prepare lock being taken. Oddly enough, we take the lock again in debugfs APIs so that we can call the internal "clk_core" APIs to get these fields with any necessary recalculations. Instead of having this confusion, let's introduce a recalc variant of these two consumer APIs as internal helpers and call them from the consumer APIs and the debugfs code so that we don't take the lock more than once. Cc: Douglas Anderson <dianders@chromium.org> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lkml.kernel.org/r/20200205232802.29184-4-sboyd@kernel.org Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions