diff options
author | David Lechner <[email protected]> | 2024-01-25 17:47:31 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-01-26 14:35:43 +0000 |
commit | 0da9a5794cfda615668eaefde811e8ef378134fe (patch) | |
tree | dd9ae1bcf297458dadcdfe6e795038a09d8edf47 /tools/perf/scripts/python/check-perf-trace.py | |
parent | a6fc5c5b35f688480167a7a7947ddd91c07e72c8 (diff) |
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 <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions