git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: add API to lock/unlock tailq list
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
generic
/
rte_cycles.h
diff --git
a/lib/librte_eal/common/include/generic/rte_cycles.h
b/lib/librte_eal/common/include/generic/rte_cycles.h
index
0ff1af5
..
73d1fa7
100644
(file)
--- a/
lib/librte_eal/common/include/generic/rte_cycles.h
+++ b/
lib/librte_eal/common/include/generic/rte_cycles.h
@@
-13,6
+13,7
@@
*/
#include <stdint.h>
*/
#include <stdint.h>
+#include <rte_compat.h>
#include <rte_debug.h>
#include <rte_atomic.h>
#include <rte_debug.h>
#include <rte_atomic.h>
@@
-157,12
+158,23
@@
rte_delay_ms(unsigned ms)
*/
void rte_delay_us_block(unsigned int us);
*/
void rte_delay_us_block(unsigned int us);
+/**
+ * Delay function that uses system sleep.
+ * Does not block the CPU core.
+ *
+ * @param us
+ * Number of microseconds to wait.
+ */
+__rte_experimental
+void
+rte_delay_us_sleep(unsigned int us);
+
/**
* Replace rte_delay_us with user defined function.
*
* @param userfunc
* User function which replaces rte_delay_us. rte_delay_us_block restores
/**
* Replace rte_delay_us with user defined function.
*
* @param userfunc
* User function which replaces rte_delay_us. rte_delay_us_block restores
- * buil
d
in block delay function.
+ * buil
t
in block delay function.
*/
void rte_delay_us_callback_register(void(*userfunc)(unsigned int));
*/
void rte_delay_us_callback_register(void(*userfunc)(unsigned int));