diff options
author | Théo Lebrun <[email protected]> | 2024-04-05 17:02:14 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-04-08 15:18:09 +0100 |
commit | dcc594aef1bf3a6a49b77ad2c0348d894b7cd956 (patch) | |
tree | 45085052975df0223556388453ffa00a937ab096 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 708eafeba9eec51c5bde8efef2a7c22d7113b771 (diff) |
spi: cadence-qspi: store device data pointer in private struct
Avoid of_device_get_match_data() call on each IRQ and each read
operation. Store pointer in `struct cqspi_st` device instance.
End-to-end performance measurements improve with this patch. On a given
octal flash, reading 235M over UBIFS is ~3.4% faster. During that read,
the average cqspi_exec_mem_op() call goes from 85.4µs to 80.7µs
according to ftrace. The worst case goes from 622.4µs to 615.2µs.
Signed-off-by: Théo Lebrun <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions