diff options
author | 2024-01-25 17:47:31 -0600 | |
---|---|---|
committer | 2024-01-26 14:35:43 +0000 | |
commit | 0da9a5794cfda615668eaefde811e8ef378134fe (patch) | |
tree | dd9ae1bcf297458dadcdfe6e795038a09d8edf47 /tools/perf/scripts/python | |
parent | spi: cs42l43: Handle error from devm_pm_runtime_enable() (diff) | |
download | wireguard-linux-0da9a5794cfda615668eaefde811e8ef378134fe.tar.xz wireguard-linux-0da9a5794cfda615668eaefde811e8ef378134fe.zip |
spi: avoid double validation in __spi_sync()
The __spi_sync() function calls __spi_validate() early in the function.
Later, it can call spi_async_locked() which calls __spi_validate()
again. __spi_validate() is an expensive function, so we can improve
performance measurably by avoiding calling it twice.
Instead of calling spi_async_locked(), we can call __spi_async() with
the spin lock held.
spi_async_locked() is removed since there are no more callers.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://msgid.link/r/20240125234732.3530278-2-dlechner@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions