summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-cavium.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-07-15 19:36:10 +0300
committerMark Brown <broonie@kernel.org>2020-07-17 02:55:23 +0300
commite126859729ed4a5143e5690186b8bec1c1157113 (patch)
treee5af46301959fcc4461425477da4f6b0ca856b35 /drivers/spi/spi-cavium.h
parent2ae3de10abfe0be40c9d93ebc2f429b969abf008 (diff)
downloadlinux-e126859729ed4a5143e5690186b8bec1c1157113.tar.xz
spi: Only defer to thread for cleanup when needed
Currently we always defer idling of controllers to the SPI thread, the goal being to ensure that we're doing teardown that's not suitable for atomic context in an appropriate context and to try to batch up more expensive teardown operations when the system is under higher load, allowing more work to be started before the SPI thread is scheduled. However when the controller does not require any substantial work to idle there is no need to do this, we can instead save the context switch and immediately mark the controller as idle. This is particularly useful for systems where there is frequent but not constant activity. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20200715163610.9475-1-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cavium.h')
0 files changed, 0 insertions, 0 deletions