From: Ashwin Sekhar T K Date: Fri, 12 May 2017 05:45:42 +0000 (-0700) Subject: eal: pause while busy-waiting for lcore slave X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d55ebcc78d82fd4ec72e4fa47fea62a9f2fe685;p=dpdk.git eal: pause while busy-waiting for lcore slave Instead of simply busy-waiting for slave in rte_eal_wait_lcore() do rte_pause(). This will give power savings. This also fixes warning -Wempty-body seen with armv8a clang compilation. Suggested-by: Jerin Jacob Signed-off-by: Ashwin Sekhar T K Acked-by: Hemant Agrawal --- diff --git a/lib/librte_eal/common/eal_common_launch.c b/lib/librte_eal/common/eal_common_launch.c index 229c3a0344..1848466062 100644 --- a/lib/librte_eal/common/eal_common_launch.c +++ b/lib/librte_eal/common/eal_common_launch.c @@ -54,7 +54,8 @@ rte_eal_wait_lcore(unsigned slave_id) return 0; while (lcore_config[slave_id].state != WAIT && - lcore_config[slave_id].state != FINISHED); + lcore_config[slave_id].state != FINISHED) + rte_pause(); rte_rmb();