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: default avatarBenjamin Herrenschmidt <>
parent c0b948d4
......@@ -185,7 +185,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only)
start = timer0_value_read();
for(i = 0; i < size/sz; i++) {
array[i] = i;
array[i] = -1ul;
end = timer0_value_read();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment