From: Robert Sanford Date: Wed, 25 Feb 2015 04:09:47 +0000 (-0500) Subject: timer: pause in reset sync X-Git-Tag: spdx-start~9551 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bf2fef39b54b1ea96df9016c08675c5cf2624ae8;p=dpdk.git 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 Acked-by: Olivier Matz --- diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 76c9caeb33..af33f6d280 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 */