diff options
author | Mark Brown <broonie@kernel.org> | 2014-12-10 16:46:33 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-11 15:25:30 +0300 |
commit | fc9e0f71f2d7ea43fa3ba0bea68586d1462cb5a7 (patch) | |
tree | f32627b66f9bb1f2330f629526f0d5111360be22 /include/linux/serial.h | |
parent | 0461a4149836c792d186027c8c859637a4cfb11a (diff) | |
download | linux-fc9e0f71f2d7ea43fa3ba0bea68586d1462cb5a7.tar.xz |
spi: Only idle the message pump in the worker kthread
In order to avoid the situation where the kthread is waiting for another
context to make the hardware idle let the message pump know if it's being
called from the worker thread context and if it isn't then defer to the
worker thread instead of idling the hardware immediately. This will ensure
that if this situation happens we block rather than busy waiting.
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/serial.h')
0 files changed, 0 insertions, 0 deletions