commit | 14de3918eacfc624023775c319e85e6597514195 | [log] [tgz] |
---|---|---|
author | Gao Pan <pandy.gao@nxp.com> | Thu Nov 24 19:04:42 2016 +0800 |
committer | Mark Brown <broonie@kernel.org> | Fri Nov 25 13:04:47 2016 +0000 |
tree | 625f20f1d1031d5ddb1ce6f7a5c4be3ba5c0ecf4 | |
parent | e3a49390ebefec6f7e3d447b5ba3ba253dd51145 [diff] |
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>