]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: use usleep_range rather than HZ magic in mmc_delay()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 14 Nov 2017 22:55:20 +0000 (23:55 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:29 +0000 (12:44 +0100)
commitce22bf51b0bc84a21c36341e2267aa9bce1dd600
tree05387bc26e57f24f15ed094bdda4b34cc134e463
parent8569786b415f78206741056021e35335412e7d77
mmc: core: use usleep_range rather than HZ magic in mmc_delay()

Documentation/timers/timers-howto.txt recommends to use usleep_range for
delays 1-20ms. Let's adhere to it. No need for messing with HZ and still
do busy looping these days.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.h