app/eventdev: fix timeout accuracy
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Thu, 25 Feb 2021 12:01:43 +0000 (17:31 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Apr 2021 07:23:34 +0000 (09:23 +0200)
commit626b12a8d3bb018f7fc9e2eae356a375fb2d38dc
tree2956fd635786eba3202cc41690d82a528d266a89
parent052a5d38676373971cf2840c695a1421d2ac3045
app/eventdev: fix timeout accuracy

Round timeout ticks when converting from nanoseconds, this prevents
loss of accuracy and deviation from requested timeout value.

Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a producer")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
app/test-eventdev/test_perf_common.c