]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_launch.c
update Cavium Inc copyright headers
[dpdk.git] / lib / librte_eal / common / eal_common_launch.c
index 599f83b525ace0b43c8b7fb8cdb861e7a7b6752f..137c191dd1b982d94cfd008f85345928ee90e910 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);
        }
 }
-