]> git.baikalelectronics.ru Git - kernel.git/commit
clk: ux500: add range to usleep_range
authorNicholas Mc Guire <hofrat@opentech.at>
Thu, 11 Apr 2019 11:04:11 +0000 (13:04 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2019 18:47:50 +0000 (11:47 -0700)
commit99565f5839739ea9a5eaf69570e103e1ab3ed516
tree05bd368a0acbbb8c11aa6cd7e2f9de16819d5805
parentc532c2259b4a124d0d605182d640720221e6514b
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>
drivers/clk/ux500/clk-sysctrl.c