diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2017-12-01 22:51:54 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2017-12-19 16:17:43 -0800 |
commit | 0f6cc2b8e94da5400528c0ba7fd910392ec598a2 (patch) | |
tree | 3f2f13854af4eeb7875dacc4d4d62acb4641cfea /fs/overlayfs/util.c | |
parent | 9e4d04adeb1a957be212aace20ac5cee6f14013c (diff) | |
download | op-kernel-dev-0f6cc2b8e94da5400528c0ba7fd910392ec598a2.zip op-kernel-dev-0f6cc2b8e94da5400528c0ba7fd910392ec598a2.tar.gz |
clk: rework calls to round and determine rate callbacks
Rework the way the callbacks round_rate() and determine_rate() are called.
The goal is to do this at a single point and make it easier to add
conditions before calling them.
Because of this factorization, rate returned by determine_rate() is also
checked against the min and max rate values
This rework is done to ease the integration of "protected" clock
functionality.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20171201215200.23523-5-jbrunet@baylibre.com
Diffstat (limited to 'fs/overlayfs/util.c')
0 files changed, 0 insertions, 0 deletions