]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_lcore.c
eal: do not cache lcore detection state
[dpdk.git] / lib / librte_eal / common / eal_common_lcore.c
index 39efadef1a6092730b6feb87bdbe9adbc69c16cc..1d16fb215649576d43d74266baeda9bb4e66b072 100644 (file)
@@ -139,9 +139,7 @@ rte_eal_cpu_init(void)
                socket_id = eal_cpu_socket_id(lcore_id);
                lcore_to_socket_id[lcore_id] = socket_id;
 
-               /* in 1:1 mapping, record related cpu detected state */
-               lcore_config[lcore_id].detected = eal_cpu_detected(lcore_id);
-               if (lcore_config[lcore_id].detected == 0) {
+               if (eal_cpu_detected(lcore_id) == 0) {
                        config->lcore_role[lcore_id] = ROLE_OFF;
                        lcore_config[lcore_id].core_index = -1;
                        continue;