test/ring: use division for cycle count calculation
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Sat, 18 Jan 2020 19:32:42 +0000 (13:32 -0600)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 19 Jan 2020 18:23:20 +0000 (19:23 +0100)
commit542cf18b99be0a2d4ab2b075c4b7417f3f4b4975
treec027636de3a30740eac7076e4b3d2f2d59222eeb
parent0218fe50c4cfe4c2d41d145ba79451912cdb13b5
test/ring: use division for cycle count calculation

Use division instead of modulo operation to calculate more
accurate cycle count.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_ring_perf.c