ticketlock: enable generic ticketlock on all arch
Let all architectures use generic ticketlock implementation. Signed-off-by: Joyce Kong <joyce.kong@arm.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
This commit is contained in:
parent
184104fc61
commit
ca49b92079
22
lib/librte_eal/common/include/arch/arm/rte_ticketlock.h
Normal file
22
lib/librte_eal/common/include/arch/arm/rte_ticketlock.h
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
* Copyright(c) 2019 Arm Limited
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _RTE_TICKETLOCK_ARM_H_
|
||||||
|
#define _RTE_TICKETLOCK_ARM_H_
|
||||||
|
|
||||||
|
#ifndef RTE_FORCE_INTRINSICS
|
||||||
|
# error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "generic/rte_ticketlock.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _RTE_TICKETLOCK_ARM_H_ */
|
18
lib/librte_eal/common/include/arch/ppc_64/rte_ticketlock.h
Normal file
18
lib/librte_eal/common/include/arch/ppc_64/rte_ticketlock.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
* Copyright(c) 2019 Arm Limited
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _RTE_TICKETLOCK_PPC_64_H_
|
||||||
|
#define _RTE_TICKETLOCK_PPC_64_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "generic/rte_ticketlock.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _RTE_TICKETLOCK_PPC_64_H_ */
|
18
lib/librte_eal/common/include/arch/x86/rte_ticketlock.h
Normal file
18
lib/librte_eal/common/include/arch/x86/rte_ticketlock.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
* Copyright(c) 2019 Arm Limited
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _RTE_TICKETLOCK_X86_64_H_
|
||||||
|
#define _RTE_TICKETLOCK_X86_64_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "generic/rte_ticketlock.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _RTE_TICKETLOCK_X86_64_H_ */
|
Loading…
Reference in New Issue
Block a user