New upstream version 17.11-rc3
[deb_dpdk.git] / lib / librte_eal / common / arch / x86 / rte_spinlock.c
index c383e9f..1244a90 100644 (file)
@@ -38,8 +38,7 @@
 uint8_t rte_rtm_supported; /* cache the flag to avoid the overhead
                              of the rte_cpu_get_flag_enabled function */
 
-static void __attribute__((constructor))
-rte_rtm_init(void)
+RTE_INIT(rte_rtm_init)
 {
        rte_rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM);
 }