diff options
author | 2013-04-11 11:31:37 -0700 | |
---|---|---|
committer | 2013-04-12 11:23:24 -0700 | |
commit | f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0 (patch) | |
tree | 737e5e9ccd32fc757d7435af3e0b0ba0b9cda7bf /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | clk: composite: rename 'div' references to 'rate' (diff) | |
download | linux-dev-f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0.tar.xz linux-dev-f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0.zip |
clk: composite: allow fixed rates & fixed dividers
The composite clock assumes that any clock implementing the .recalc_rate
callback will also implement .round_rate and .set_rate. This is not
always true; the basic fixed-rate clock will only implement .recalc_rate
and a fixed-divider clock may choose to implement .recalc_rate and
.round_rate but not .set_rate.
Fix this by conditionally registering .round_rate and .set_rate
callbacks based on the rate_ops passed in to clk_composite_register.
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Emilio López <emilio@elopez.com.ar>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions