]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Use usleep_range() instead of msleep()
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 15 Jan 2016 11:35:24 +0000 (19:35 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jan 2016 16:47:52 +0000 (16:47 +0000)
commit2d0dd5bbe26af4a2e645320f1f5bd28bce927974
tree8586f494132b8d384e332acf759284630f5ffaa6
parent927aa9e93211d04557b1c81885c2df4f82840dbc
ASoC: fsl_sai: Use usleep_range() instead of msleep()

Since msleep() will sleep longer than intended time for values less
than 20ms, this patch allows the use of usleep_range for just 1ms.
usleep_range is a finer precision implementation of msleep and is
designed to be a drop-in replacement for udelay where a precise
sleep/busy-wait is unnecessary.

More details see Documentation/timers/timers-howto.txt.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c