summaryrefslogtreecommitdiff
path: root/lib/librte_timer
diff options
context:
space:
mode:
authorRobert Sanford <rsanford2@gmail.com>2015-02-24 23:09:47 -0500
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-02-25 10:39:42 +0100
commitbf2fef39b54b1ea96df9016c08675c5cf2624ae8 (patch)
tree4c09ffe4b2f06c7fc89260015e47db9a2323cdcb /lib/librte_timer
parent204896f8d66cb74c31283cbf201788e7c5505697 (diff)
downloaddpdk-bf2fef39b54b1ea96df9016c08675c5cf2624ae8.zip
dpdk-bf2fef39b54b1ea96df9016c08675c5cf2624ae8.tar.gz
dpdk-bf2fef39b54b1ea96df9016c08675c5cf2624ae8.tar.xz
timer: pause in reset sync
In rte_timer_reset_sync(), insert rte_pause() into loop that waits for rte_timer_reset() to succeed. Signed-off-by: Robert Sanford <rsanford2@gmail.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib/librte_timer')
-rw-r--r--lib/librte_timer/rte_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c
index 76c9cae..af33f6d 100644
--- a/lib/librte_timer/rte_timer.c
+++ b/lib/librte_timer/rte_timer.c
@@ -447,7 +447,8 @@ rte_timer_reset_sync(struct rte_timer *tim, uint64_t ticks,
rte_timer_cb_t fct, void *arg)
{
while (rte_timer_reset(tim, ticks, type, tim_lcore,
- fct, arg) != 0);
+ fct, arg) != 0)
+ rte_pause();
}
/* Stop the timer associated with the timer handle tim */