update Cavium Inc copyright headers
[dpdk.git] / lib / librte_eal / common / eal_common_launch.c
index 599f83b..137c191 100644 (file)
@@ -39,9 +39,9 @@
 #include <rte_launch.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_atomic.h>
+#include <rte_pause.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
 
@@ -55,7 +55,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();
 
@@ -117,4 +118,3 @@ rte_eal_mp_wait_lcore(void)
                rte_eal_wait_lcore(lcore_id);
        }
 }
-