eal: pause while busy-waiting for lcore slave
authorAshwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Fri, 12 May 2017 05:45:42 +0000 (22:45 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jul 2017 20:27:40 +0000 (22:27 +0200)
commit8d55ebcc78d82fd4ec72e4fa47fea62a9f2fe685
treec3b2f4ec2f6b5ee9ed890426f21807b6d68121b8
parent47e15e618a09253f49971c6bc331bdb3421bf0f4
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 <jerin.jacob@caviumnetworks.com>
Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
lib/librte_eal/common/eal_common_launch.c