memspeed: Write a fixed value

Otherwise we have at least an extra addition in the loop
which squews the result compared to the read loop.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2020-07-08 17:13:37 +10:00
parent c0b948d4f9
commit 83d24d087d
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only)
timer0_update_value_write(1);
start = timer0_value_read();
for(i = 0; i < size/sz; i++) {
array[i] = i;
array[i] = -1ul;
}
timer0_update_value_write(1);
end = timer0_value_read();