spinlock: move constructor out of x86 header file
authorDamjan Marion <damarion@cisco.com>
Thu, 14 Jul 2016 13:27:29 +0000 (15:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 15:26:52 +0000 (17:26 +0200)
commita088b5ea35e78d3866d492ed5e8c8f47118696a6
tree194b4ebc53ab3c35a608acff6ac950cb5b586b82
parentd553c8f2b1a28bb24f15a42a3c1afdb03e586115
spinlock: move constructor out of x86 header file

Having constructor function in the header file is generally
a bad idea, as it will eventually be implanted to 3rd party
library.

In this case it causes linking issues with 3rd party libraries
when an application is not linked to dpdk, due to missing
symbol called by constructor.

Fixes: ba7468997ea6 ("spinlock: add HTM lock elision for x86")

Signed-off-by: Damjan Marion <damarion@cisco.com>
Reviewed-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/arch/x86/rte_spinlock.c [new file with mode: 0644]
lib/librte_eal/common/include/arch/x86/rte_spinlock.h
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/rte_eal_version.map