]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/linux/eal_thread.c
eal: remove FINISHED lcore state
[dpdk.git] / lib / eal / linux / eal_thread.c
index 8f3c0dafd612a0c729f8a60349e8fdc77ea3006a..e2c9e5a3f7c1e049afe4f0dad19165fd42e1dbf9 100644 (file)
@@ -28,7 +28,7 @@
 /*
  * Send a message to a worker lcore identified by worker_id to call a
  * function f with argument arg. Once the execution is done, the
- * remote lcore switch in FINISHED state.
+ * remote lcore switches to WAIT state.
  */
 int
 rte_eal_remote_launch(int (*f)(void *), void *arg, unsigned int worker_id)
@@ -130,13 +130,7 @@ eal_thread_loop(__rte_unused void *arg)
                lcore_config[lcore_id].arg = NULL;
                rte_wmb();
 
-               /* when a service core returns, it should go directly to WAIT
-                * state, because the application will not lcore_wait() for it.
-                */
-               if (lcore_config[lcore_id].core_role == ROLE_SERVICE)
-                       lcore_config[lcore_id].state = WAIT;
-               else
-                       lcore_config[lcore_id].state = FINISHED;
+               lcore_config[lcore_id].state = WAIT;
        }
 
        /* never reached */