spi: imx: replace schedule() with cond_resched()
authorGao Pan <pandy.gao@nxp.com>
Thu, 24 Nov 2016 11:04:42 +0000 (19:04 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2016 13:04:47 +0000 (13:04 +0000)
commit14de3918eacfc624023775c319e85e6597514195
tree625f20f1d1031d5ddb1ce6f7a5c4be3ba5c0ecf4
parente3a49390ebefec6f7e3d447b5ba3ba253dd51145
spi: imx: replace schedule() with cond_resched()

It's more rational that just do the schedule when necessary
other than do it every time. Thus, it's better to replace
schedule() with cond_resched() in fsl_lpspi_txfifo_empty(),
which contributes to saving cpu time.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c