eal: add nanosleep based delay function
authorIlya Maximets <i.maximets@samsung.com>
Wed, 10 Oct 2018 14:12:19 +0000 (17:12 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commita51639cc720aa17922d4b479e9961169f3a36c64
tree31c4f9e5d18232248939d158189226617795a257
parentb9788afec528f03a252d206e7426cb301c162ee5
eal: add nanosleep based delay function

Add a new rte_delay_us_sleep() function that uses nanosleep().
This function can be used by applications to not implement
their own nanosleep() based callback and by internal DPDK
code if CPU non-blocking delay needed.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/eal_common_timer.c
lib/librte_eal/common/include/generic/rte_cycles.h
lib/librte_eal/rte_eal_version.map
test/test/autotest_data.py
test/test/meson.build
test/test/test_cycles.c