OSDN Git Service

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)
commitc942081c87dd532397d796b5c0196e95d5d45092
tree05bd368a0acbbb8c11aa6cd7e2f9de16819d5805
parentb331db554815d0552c537e189b897eb062486166
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