diff options
author | Jaewon Kim <jaewon02.kim@samsung.com> | 2023-05-02 08:28:12 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-08 02:10:51 +0200 |
commit | 3456674f54d3cfdedb28ce8a3db2b6f975392ac8 (patch) | |
tree | 0ae125eea2a88810a0bf04e9db18ed5d81aac554 /drivers/spi/spi-xlp.c | |
parent | spi: s3c64xx: change polling mode to optional (diff) | |
download | linux-3456674f54d3cfdedb28ce8a3db2b6f975392ac8.tar.xz linux-3456674f54d3cfdedb28ce8a3db2b6f975392ac8.zip |
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: Jaewon Kim <jaewon02.kim@samsung.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org
Link: https://lore.kernel.org/r/20230502062813.112434-3-jaewon02.kim@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org
Diffstat (limited to 'drivers/spi/spi-xlp.c')
0 files changed, 0 insertions, 0 deletions