mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 08:31:37 +00:00
imx-drm: ipu-dc: Use usleep_range instead of msleep
Since msleep(2) can sleep up to 20ms anyway, make this explicit by using usleep_range(2000, 20000). Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7f4392aa87
commit
1f15b69b59
@ -262,7 +262,7 @@ void ipu_dc_disable_channel(struct ipu_dc *dc)
|
|||||||
|
|
||||||
/* Wait for DC triple buffer to empty */
|
/* Wait for DC triple buffer to empty */
|
||||||
while ((readl(priv->dc_reg + DC_STAT) & val) != val) {
|
while ((readl(priv->dc_reg + DC_STAT) & val) != val) {
|
||||||
msleep(2);
|
usleep_range(2000, 20000);
|
||||||
timeout -= 2;
|
timeout -= 2;
|
||||||
if (timeout <= 0)
|
if (timeout <= 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user