thermal: rcar_thermal: Use usleep_range() instead of udelay()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 15 Jan 2020 12:54:17 +0000 (13:54 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 10:41:08 +0000 (11:41 +0100)
commit263c8c4c76d9da63f1f8805ac5fc62a270448301
treebe79ab2721145e884ef496ab17ea3c4ceba3b7cb
parent1a90e73248c4d0add6583bd88bb5e082c3e090bc
thermal: rcar_thermal: Use usleep_range() instead of udelay()

rcar_thermal_update_temp() takes a mutex, so it is always called in a
context that can sleep.  Hence replace the 300 µs busy loop by a call to
usleep_range(), to allow other threads to run.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200115125417.5263-1-geert+renesas@glider.be
drivers/thermal/rcar_thermal.c