diff options
author | Mark Brown | 2016-02-15 19:28:02 +0100 |
---|---|---|
committer | Mark Brown | 2016-02-18 18:41:44 +0100 |
commit | 628269704f19fcfc765499b7158effccfc79b6cf (patch) | |
tree | c4d5f2000c5e0bb167e435589bce9500180e8839 /include/linux/spi/spi.h | |
parent | spi: introduce accelerated read support for spi flash devices (diff) | |
download | kernel-qcow2-linux-628269704f19fcfc765499b7158effccfc79b6cf.tar.gz kernel-qcow2-linux-628269704f19fcfc765499b7158effccfc79b6cf.tar.xz kernel-qcow2-linux-628269704f19fcfc765499b7158effccfc79b6cf.zip |
spi: Add cond_resched() in main message processing loop
When a controller has only PIO support it is very likely that we will
run into use cases where we spend a very large amount of time consuming
CPU. Code that does this should call cond_resched() every once in a
while to give other tasks more of a chance to run so do that in the main
SPI loop, the overhead is negligable if it's not needed.
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi/spi.h')
0 files changed, 0 insertions, 0 deletions