aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2024-01-25 17:47:31 -0600
committerMark Brown <[email protected]>2024-01-26 14:35:43 +0000
commit0da9a5794cfda615668eaefde811e8ef378134fe (patch)
treedd9ae1bcf297458dadcdfe6e795038a09d8edf47 /tools/perf/scripts/python
parenta6fc5c5b35f688480167a7a7947ddd91c07e72c8 (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')
0 files changed, 0 insertions, 0 deletions