eal: hide internal hotplug function
[dpdk.git] / lib / librte_eal / linux / eal / eal.c
index d96ed3a..8a0b387 100644 (file)
@@ -59,6 +59,7 @@
 #include "eal_hugepages.h"
 #include "eal_options.h"
 #include "eal_vfio.h"
+#include "hotplug_mp.h"
 
 #define MEMSIZE_IF_NO_HUGE_PAGE (64ULL * 1024ULL * 1024ULL)
 
@@ -1045,7 +1046,7 @@ rte_eal_init(int argc, char **argv)
        }
 
        if (rte_eal_alarm_init() < 0) {
-               rte_eal_init_alert("Cannot init interrupt-handling thread");
+               rte_eal_init_alert("Cannot init alarm");
                /* rte_eal_alarm_init sets rte_errno on failure. */
                return -1;
        }
@@ -1062,7 +1063,7 @@ rte_eal_init(int argc, char **argv)
        }
 
        /* register multi-process action callbacks for hotplug */
-       if (rte_mp_dev_hotplug_init() < 0) {
+       if (eal_mp_dev_hotplug_init() < 0) {
                rte_eal_init_alert("failed to register mp callback for hotplug");
                return -1;
        }
@@ -1122,8 +1123,6 @@ rte_eal_init(int argc, char **argv)
 #endif
        }
 
-       rte_srand(rte_rdtsc());
-
        if (rte_eal_log_init(logid, internal_config.syslog_facility) < 0) {
                rte_eal_init_alert("Cannot init logging.");
                rte_errno = ENOMEM;