diff options
author | David Lechner <[email protected]> | 2024-02-07 08:51:24 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-02-07 15:17:42 +0000 |
commit | 531860e12da76a444e0ecfd37a9d786e7986957a (patch) | |
tree | e95ab3d6a0f9e4d7513fcc6b2a8ba9574407f98c /tools/perf/scripts/python/check-perf-trace.py | |
parent | c0c0293cf7a0f21ef461956d44e4add718574f3f (diff) |
spi: axi-spi-engine: remove use of ida for sync id
Profiling has shown that ida_alloc_range() accounts for about 10% of the
time spent in spi_sync() when using the AXI SPI Engine controller. This
call is used to create a unique id for each SPI message to match to an
IRQ when the message is complete.
Since the core SPI code serializes messages in a message queue, we can
only have one message in flight at a time, namely host->cur_msg. This
means that we can use a fixed value instead of a unique id for each
message since there can never be more than one message pending at a
time.
This patch removes the use of ida for the sync id and replaces it with a
constant value. This simplifies the driver and improves performance.
Reviewed-by: Nuno Sa <[email protected]>
Signed-off-by: David Lechner <[email protected]>
Link: https://lore.kernel.org/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