From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 (+0000) Subject: timer: add a rte_pause in a tight loop X-Git-Tag: spdx-start~11246 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ae2d65e257330c4ea0e6ca61b0faa5eadc127f7b;p=dpdk.git timer: add a rte_pause in a tight loop Signed-off-by: Intel --- diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 136b641e37..f3798aebc5 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -387,7 +387,8 @@ rte_timer_stop(struct rte_timer *tim) void rte_timer_stop_sync(struct rte_timer *tim) { - while (rte_timer_stop(tim) != 0); + while (rte_timer_stop(tim) != 0) + rte_pause(); } /* Test the PENDING status of the timer handle tim */