diff options
author | Nicholas Mc Guire <hofrat@opentech.at> | 2019-04-11 13:04:11 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-11 20:47:50 +0200 |
commit | c942081c87dd532397d796b5c0196e95d5d45092 (patch) | |
tree | 05bd368a0acbbb8c11aa6cd7e2f9de16819d5805 | |
parent | clk: tegra: Make tegra_clk_super_mux_ops static (diff) | |
download | linux-c942081c87dd532397d796b5c0196e95d5d45092.tar.xz linux-c942081c87dd532397d796b5c0196e95d5d45092.zip |
clk: ux500: add range to usleep_range
Providing a range for usleep_range() allows the hrtimer subsystem to
coalesce timers - the delay is runtime configurable so a factor 2
is taken to provide the range. With the expected range for
enable_delay_us being milliseconds, the range should lie in the 250us
range which is sufficient for hrtimer optimization.
Signed-off-by: Nicholas Mc Guire <hofrat@opentech.at>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/ux500/clk-sysctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/ux500/clk-sysctrl.c b/drivers/clk/ux500/clk-sysctrl.c index 7c0403b733ae..698306f4801f 100644 --- a/drivers/clk/ux500/clk-sysctrl.c +++ b/drivers/clk/ux500/clk-sysctrl.c @@ -42,7 +42,8 @@ static int clk_sysctrl_prepare(struct clk_hw *hw) clk->reg_bits[0]); if (!ret && clk->enable_delay_us) - usleep_range(clk->enable_delay_us, clk->enable_delay_us); + usleep_range(clk->enable_delay_us, clk->enable_delay_us + + (clk->enable_delay_us >> 2)); return ret; } |