Skip to content
Unverified Commit 3456674f authored by Jaewon Kim's avatar Jaewon Kim Committed by Mark Brown
Browse files

spi: s3c64xx: add sleep during transfer



In polling mode, the status register is continuously read to check data
transfer completion. It can cause excessive CPU usage.
To reduce this, we can calculate the transfer time and put the sleep during
transfer.

When test on ExynosAuto9 SADK board, throughput remained the same, but
100% CPU utilization decreased to 40%.

Signed-off-by: default avatarJaewon Kim <jaewon02.kim@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230502062813.112434-3-jaewon02.kim@samsung.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d1a7718e
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