commit | fc9e0f71f2d7ea43fa3ba0bea68586d1462cb5a7 | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@kernel.org> | Wed Dec 10 13:46:33 2014 +0000 |
committer | Mark Brown <broonie@kernel.org> | Thu Dec 11 12:25:30 2014 +0000 |
tree | f32627b66f9bb1f2330f629526f0d5111360be22 | |
parent | 0461a4149836c792d186027c8c859637a4cfb11a [diff] |
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>