Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11-rc3
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
arch
/
x86
/
rte_spinlock.c
diff --git
a/lib/librte_eal/common/arch/x86/rte_spinlock.c
b/lib/librte_eal/common/arch/x86/rte_spinlock.c
index
c383e9f
..
1244a90
100644
(file)
--- a/
lib/librte_eal/common/arch/x86/rte_spinlock.c
+++ b/
lib/librte_eal/common/arch/x86/rte_spinlock.c
@@
-38,8
+38,7
@@
uint8_t rte_rtm_supported; /* cache the flag to avoid the overhead
of the rte_cpu_get_flag_enabled function */
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);
}
{
rte_rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM);
}