The first two patches make memtest run ~40x faster (when, as it should be, dcache is disabled), with the second patch being responsible for most of that. At least on the beagleboneblack which I used for testing; other boards and configurations will likely see different numbers.
This is for CONFIG_SYS_ALT_MEMTEST=y and CONFIG_SYS_ALT_MEMTEST_BITFLIP=n; one could probably get a similar improvement in the bitflip case since that also has a schedule() call in the inner loop. Rasmus Villemoes (3): memtest: don't volatile-qualify local variables memtest: only call schedule() once for every 256 words memtest: remove use of vu_long typedef in mem_test_alt cmd/mem.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) -- 2.50.1