spi: Only idle the message pump in the worker kthread
authorMark Brown <broonie@kernel.org>
Wed, 10 Dec 2014 13:46:33 +0000 (13:46 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 11 Dec 2014 12:25:30 +0000 (12:25 +0000)
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>

No differences found