eal: roundup TSC frequency when estimating
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 16 Mar 2019 19:01:54 +0000 (19:01 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Mar 2019 23:45:16 +0000 (00:45 +0100)
commit5cbd14b3e5f91819d4e1924a5118b32754e0d87e
tree7d677a4506d704190897bda4029cdd90098244c0
parentf56e551485d5461e5dab76b2c47164bbf646a445
eal: roundup TSC frequency when estimating

When estimating tsc frequency using sleep/gettime round it up to the
nearest multiple of 10Mhz for more accuracy.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Keith Wiles <keith.wiles@intel.com>
lib/librte_eal/common/eal_common_timer.c
lib/librte_eal/linux/eal/eal_timer.c