[PATCH] spi: mvebu: move timekeeping out of hot path
Sascha Hauer
s.hauer at pengutronix.de
Fri Sep 12 00:44:14 PDT 2025
On Wed, 10 Sep 2025 07:42:25 +0200, Steffen Trumtrar wrote:
> The wait_on_timeout uses get_time_ns for timekeeping. It seems that this
> considerably decreases transfer speeds, because the wait_on_timeout loop
> gets throttled by the timekeeping.
> Moving the timekeeping after the hot path results in ~3x transfer speed.
> Keep the wait_on_timeout after the hot path to be sure, that the code
> nevertheless waits long enough once.
>
> [...]
Applied, thanks!
[1/1] spi: mvebu: move timekeeping out of hot path
https://git.pengutronix.de/cgit/barebox/commit/?id=4ac86ef4ef1e (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list