mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
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>
This commit is contained in:
parent
b331db5548
commit
c942081c87
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user