Skip to content
Unverified Commit 26751de2 authored by Robin Murphy's avatar Robin Murphy Committed by Mark Brown
Browse files

spi: bcm2835: Micro-optimise FIFO loops



The blind and counted loops are always called with nonzero count, so
convert them to do-while loops that lead to slightly more efficient
code generation. With GCC 8.3 this shaves off 1-2 instructions per
iteration in each case.

Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/9242863077acf9a64e4b3720e479855b88d19e82.1592261248.git.robin.murphy@arm.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent afe7e363
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment