timer: add a rte_pause in a tight loop

Signed-off-by: Intel
This commit is contained in:
Intel 2013-06-03 00:00:00 +00:00 committed by Thomas Monjalon
parent e987449c9f
commit ae2d65e257

View File

@ -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 */