eal: remove unused arch specific headers for locks
Subsystems (2)
PATCH 1/1 eal: remove unused arch specific headers for locks
MCS lock, PF lock and Ticket lock have no arch specific implementation, there is no need for the extra redirection in headers.
---
Note: this was mentionned during the seqlock patch review, and I spotted it again, while reviewing the RISC-V port, and I see the same for a next architecture too. So better clean this up as we don't need the redirection.
---
MAINTAINERS | 4 ++--
lib/eal/arm/include/meson.build | 3 ---
lib/eal/arm/include/rte_mcslock.h | 22 -------------------
lib/eal/arm/include/rte_pflock.h | 18 ---------------
lib/eal/arm/include/rte_ticketlock.h | 22 -------------------
lib/eal/include/meson.build | 6 ++---
lib/eal/include/{generic => }/rte_mcslock.h | 8 +++++++
lib/eal/include/{generic => }/rte_pflock.h | 0
.../include/{generic => }/rte_ticketlock.h | 0
lib/eal/ppc/include/meson.build | 3 ---
lib/eal/ppc/include/rte_mcslock.h | 18 ---------------
lib/eal/ppc/include/rte_pflock.h | 17 --------------
lib/eal/ppc/include/rte_ticketlock.h | 18 ---------------
lib/eal/x86/include/meson.build | 3 ---
lib/eal/x86/include/rte_mcslock.h | 18 ---------------
lib/eal/x86/include/rte_pflock.h | 18 ---------------
lib/eal/x86/include/rte_ticketlock.h | 18 ---------------
17 files changed, 13 insertions(+), 183 deletions(-)
delete mode 100644 lib/eal/arm/include/rte_mcslock.h
delete mode 100644 lib/eal/arm/include/rte_pflock.h
delete mode 100644 lib/eal/arm/include/rte_ticketlock.h
rename lib/eal/include/{generic => }/rte_mcslock.h (98%)
rename lib/eal/include/{generic => }/rte_pflock.h (100%)
rename lib/eal/include/{generic => }/rte_ticketlock.h (100%)
delete mode 100644 lib/eal/ppc/include/rte_mcslock.h
delete mode 100644 lib/eal/ppc/include/rte_pflock.h
delete mode 100644 lib/eal/ppc/include/rte_ticketlock.h
delete mode 100644 lib/eal/x86/include/rte_mcslock.h
delete mode 100644 lib/eal/x86/include/rte_pflock.h
delete mode 100644 lib/eal/x86/include/rte_ticketlock.hMAINTAINERS +2 -2
@@ -255,7 +255,7 @@ F: app/test/test_bitmap.c MCSlock M: Honnappa Nagarahalli <[email protected]> -F: lib/eal/include/generic/rte_mcslock.h +F: lib/eal/include/rte_mcslock.h F: app/test/test_mcslock.c Sequence Lock
@@ -266,7 +266,7 @@ F: app/test/test_seqlock.c Ticketlock M: Joyce Kong <[email protected]> -F: lib/eal/include/generic/rte_ticketlock.h +F: lib/eal/include/rte_ticketlock.h F: app/test/test_ticketlock.c Pseudo-random Number Generation
lib/eal/arm/include/meson.build +0 -3
@@ -14,21 +14,18 @@ arch_headers = files( 'rte_cycles.h', 'rte_io_64.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy_32.h', 'rte_memcpy_64.h', 'rte_memcpy.h', 'rte_pause_32.h', 'rte_pause_64.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch_32.h', 'rte_prefetch_64.h', 'rte_prefetch.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) install_headers(arch_headers, subdir: get_option('include_subdir_arch'))
lib/eal/arm/include/rte_mcslock.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_ARM_H_ -#define _RTE_MCSLOCK_ARM_H_ - -#ifndef RTE_FORCE_INTRINSICS -# error Platform must be built with RTE_FORCE_INTRINSICS -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_ARM_H_ */
lib/eal/arm/include/rte_pflock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ - -#ifndef _RTE_PFLOCK_ARM_H_ -#define _RTE_PFLOCK_ARM_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_ARM_H_ */
lib/eal/arm/include/rte_ticketlock.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* 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 RTE_FORCE_INTRINSICS -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_ticketlock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_TICKETLOCK_ARM_H_ */
lib/eal/include/meson.build +3 -3
@@ -29,11 +29,13 @@ headers += files( 'rte_lcore.h', 'rte_log.h', 'rte_malloc.h', + 'rte_mcslock.h', 'rte_memory.h', 'rte_memzone.h', 'rte_pci_dev_feature_defs.h', 'rte_pci_dev_features.h', 'rte_per_lcore.h', + 'rte_pflock.h', 'rte_random.h', 'rte_reciprocal.h', 'rte_seqcount.h',
@@ -43,6 +45,7 @@ headers += files( 'rte_string_fns.h', 'rte_tailq.h', 'rte_thread.h', + 'rte_ticketlock.h', 'rte_time.h', 'rte_trace.h', 'rte_trace_point.h',
@@ -59,15 +62,12 @@ generic_headers = files( 'generic/rte_cpuflags.h', 'generic/rte_cycles.h', 'generic/rte_io.h', - 'generic/rte_mcslock.h', 'generic/rte_memcpy.h', 'generic/rte_pause.h', - 'generic/rte_pflock.h', 'generic/rte_power_intrinsics.h', 'generic/rte_prefetch.h', 'generic/rte_rwlock.h', 'generic/rte_spinlock.h', - 'generic/rte_ticketlock.h', 'generic/rte_vect.h', ) install_headers(generic_headers, subdir: 'generic')
lib/eal/include/rte_mcslock.h renamed from lib/eal/include/generic/rte_mcslock.h +8 -0
@@ -19,6 +19,10 @@* they acquired the lock. */ +#ifdef __cplusplus +extern "C" { +#endif +#include <rte_lcore.h> #include <rte_common.h> #include <rte_pause.h>
@@ -169,4 +173,8 @@ rte_mcslock_is_locked(rte_mcslock_t *msl)return (__atomic_load_n (&msl, __ATOMIC_RELAXED) !=NULL ); } +#ifdef __cplusplus +} +#endif +#endif /* _RTE_MCSLOCK_H_ */
lib/eal/include/rte_pflock.h renamed from lib/eal/include/generic/rte_pflock.h +0 -0
lib/eal/include/rte_ticketlock.h renamed from lib/eal/include/generic/rte_ticketlock.h +0 -0
lib/eal/ppc/include/meson.build +0 -3
@@ -8,15 +8,12 @@ arch_headers = files( 'rte_cpuflags.h', 'rte_cycles.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) install_headers(arch_headers, subdir: get_option('include_subdir_arch'))
lib/eal/ppc/include/rte_mcslock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_PPC_64_H_ -#define _RTE_MCSLOCK_PPC_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_PPC_64_H_ */
lib/eal/ppc/include/rte_pflock.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ -#ifndef _RTE_PFLOCK_PPC_64_H_ -#define _RTE_PFLOCK_PPC_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_PPC_64_H_ */
lib/eal/ppc/include/rte_ticketlock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* 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_ */
lib/eal/x86/include/meson.build +0 -3
@@ -7,16 +7,13 @@ arch_headers = files( 'rte_cpuflags.h', 'rte_cycles.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch.h', 'rte_rtm.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) arch_indirect_headers = files(
lib/eal/x86/include/rte_mcslock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_X86_64_H_ -#define _RTE_MCSLOCK_X86_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_X86_64_H_ */
lib/eal/x86/include/rte_pflock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ - -#ifndef _RTE_PFLOCK_X86_64_H_ -#define _RTE_PFLOCK_X86_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_X86_64_H_ */
lib/eal/x86/include/rte_ticketlock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* 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_ */
Signature · 1 line
2.36.1
Quoted 33 lines · On Tue, 7 Jun 2022 21:03:08 +0200 David Marchand <[email protected]>…
MCS lock, PF lock and Ticket lock have no arch specific implementation, there is no need for the extra redirection in headers.
Signed-off-by David Marchand <[email protected]>---
Note: this was mentionned during the seqlock patch review, and I spotted it again, while reviewing the RISC-V port, and I see the same for a next architecture too. So better clean this up as we don't need the redirection.--- MAINTAINERS | 4 ++-- lib/eal/arm/include/meson.build | 3 --- lib/eal/arm/include/rte_mcslock.h | 22 ------------------- lib/eal/arm/include/rte_pflock.h | 18 --------------- lib/eal/arm/include/rte_ticketlock.h | 22 ------------------- lib/eal/include/meson.build | 6 ++--- lib/eal/include/{generic => }/rte_mcslock.h | 8 +++++++ lib/eal/include/{generic => }/rte_pflock.h | 0 .../include/{generic => }/rte_ticketlock.h | 0 lib/eal/ppc/include/meson.build | 3 --- lib/eal/ppc/include/rte_mcslock.h | 18 --------------- lib/eal/ppc/include/rte_pflock.h | 17 -------------- lib/eal/ppc/include/rte_ticketlock.h | 18 --------------- lib/eal/x86/include/meson.build | 3 --- lib/eal/x86/include/rte_mcslock.h | 18 --------------- lib/eal/x86/include/rte_pflock.h | 18 --------------- lib/eal/x86/include/rte_ticketlock.h | 18 --------------- 17 files changed, 13 insertions(+), 183 deletions(-) delete mode 100644 lib/eal/arm/include/rte_mcslock.h delete mode 100644 lib/eal/arm/include/rte_pflock.h delete mode 100644 lib/eal/arm/include/rte_ticketlock.h rename lib/eal/include/{generic => }/rte_mcslock.h (98%)
Quoted 9 lines
rename lib/eal/include/{generic => }/rte_pflock.h (100%)
rename lib/eal/include/{generic => }/rte_ticketlock.h (100%)
delete mode 100644 lib/eal/ppc/include/rte_mcslock.h
delete mode 100644 lib/eal/ppc/include/rte_pflock.h
delete mode 100644 lib/eal/ppc/include/rte_ticketlock.h
delete mode 100644 lib/eal/x86/include/rte_mcslock.h
delete mode 100644 lib/eal/x86/include/rte_pflock.h
delete mode 100644 lib/eal/x86/include/rte_ticketlock.hLooks great will make future work easier.
PATCH v2 1/1 eal: remove unused arch specific headers for locks
In reply to David MarchandMCS lock, PF lock and Ticket lock have no arch specific implementation, there is no need for the extra redirection in headers.
---
Note: this was mentionned during the seqlock patch review, and I spotted it again, while reviewing the RISC-V port, and I see the same for a next architecture too. So better clean this up as we don't need the redirection.
Changes since v1:
- rebased following RISC-V merge,
---
MAINTAINERS | 4 ++--
lib/eal/arm/include/meson.build | 3 ---
lib/eal/arm/include/rte_mcslock.h | 22 -------------------
lib/eal/arm/include/rte_pflock.h | 18 ---------------
lib/eal/arm/include/rte_ticketlock.h | 22 -------------------
lib/eal/include/meson.build | 6 ++---
lib/eal/include/{generic => }/rte_mcslock.h | 8 +++++++
lib/eal/include/{generic => }/rte_pflock.h | 0
.../include/{generic => }/rte_ticketlock.h | 0
lib/eal/ppc/include/meson.build | 3 ---
lib/eal/ppc/include/rte_mcslock.h | 18 ---------------
lib/eal/ppc/include/rte_pflock.h | 17 --------------
lib/eal/ppc/include/rte_ticketlock.h | 18 ---------------
lib/eal/riscv/include/meson.build | 3 ---
lib/eal/riscv/include/rte_mcslock.h | 18 ---------------
lib/eal/riscv/include/rte_pflock.h | 17 --------------
lib/eal/riscv/include/rte_ticketlock.h | 21 ------------------
lib/eal/x86/include/meson.build | 3 ---
lib/eal/x86/include/rte_mcslock.h | 18 ---------------
lib/eal/x86/include/rte_pflock.h | 18 ---------------
lib/eal/x86/include/rte_ticketlock.h | 18 ---------------
21 files changed, 13 insertions(+), 242 deletions(-)
delete mode 100644 lib/eal/arm/include/rte_mcslock.h
delete mode 100644 lib/eal/arm/include/rte_pflock.h
delete mode 100644 lib/eal/arm/include/rte_ticketlock.h
rename lib/eal/include/{generic => }/rte_mcslock.h (98%)
rename lib/eal/include/{generic => }/rte_pflock.h (100%)
rename lib/eal/include/{generic => }/rte_ticketlock.h (100%)
delete mode 100644 lib/eal/ppc/include/rte_mcslock.h
delete mode 100644 lib/eal/ppc/include/rte_pflock.h
delete mode 100644 lib/eal/ppc/include/rte_ticketlock.h
delete mode 100644 lib/eal/riscv/include/rte_mcslock.h
delete mode 100644 lib/eal/riscv/include/rte_pflock.h
delete mode 100644 lib/eal/riscv/include/rte_ticketlock.h
delete mode 100644 lib/eal/x86/include/rte_mcslock.h
delete mode 100644 lib/eal/x86/include/rte_pflock.h
delete mode 100644 lib/eal/x86/include/rte_ticketlock.hMAINTAINERS +2 -2
@@ -255,7 +255,7 @@ F: app/test/test_bitmap.c MCSlock M: Honnappa Nagarahalli <[email protected]> -F: lib/eal/include/generic/rte_mcslock.h +F: lib/eal/include/rte_mcslock.h F: app/test/test_mcslock.c Sequence Lock
@@ -266,7 +266,7 @@ F: app/test/test_seqlock.c Ticketlock M: Joyce Kong <[email protected]> -F: lib/eal/include/generic/rte_ticketlock.h +F: lib/eal/include/rte_ticketlock.h F: app/test/test_ticketlock.c Pseudo-random Number Generation
lib/eal/arm/include/meson.build +0 -3
@@ -14,21 +14,18 @@ arch_headers = files( 'rte_cycles.h', 'rte_io_64.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy_32.h', 'rte_memcpy_64.h', 'rte_memcpy.h', 'rte_pause_32.h', 'rte_pause_64.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch_32.h', 'rte_prefetch_64.h', 'rte_prefetch.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) install_headers(arch_headers, subdir: get_option('include_subdir_arch'))
lib/eal/arm/include/rte_mcslock.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_ARM_H_ -#define _RTE_MCSLOCK_ARM_H_ - -#ifndef RTE_FORCE_INTRINSICS -# error Platform must be built with RTE_FORCE_INTRINSICS -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_ARM_H_ */
lib/eal/arm/include/rte_pflock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ - -#ifndef _RTE_PFLOCK_ARM_H_ -#define _RTE_PFLOCK_ARM_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_ARM_H_ */
lib/eal/arm/include/rte_ticketlock.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* 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 RTE_FORCE_INTRINSICS -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_ticketlock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_TICKETLOCK_ARM_H_ */
lib/eal/include/meson.build +3 -3
@@ -29,11 +29,13 @@ headers += files( 'rte_lcore.h', 'rte_log.h', 'rte_malloc.h', + 'rte_mcslock.h', 'rte_memory.h', 'rte_memzone.h', 'rte_pci_dev_feature_defs.h', 'rte_pci_dev_features.h', 'rte_per_lcore.h', + 'rte_pflock.h', 'rte_random.h', 'rte_reciprocal.h', 'rte_seqcount.h',
@@ -43,6 +45,7 @@ headers += files( 'rte_string_fns.h', 'rte_tailq.h', 'rte_thread.h', + 'rte_ticketlock.h', 'rte_time.h', 'rte_trace.h', 'rte_trace_point.h',
@@ -59,15 +62,12 @@ generic_headers = files( 'generic/rte_cpuflags.h', 'generic/rte_cycles.h', 'generic/rte_io.h', - 'generic/rte_mcslock.h', 'generic/rte_memcpy.h', 'generic/rte_pause.h', - 'generic/rte_pflock.h', 'generic/rte_power_intrinsics.h', 'generic/rte_prefetch.h', 'generic/rte_rwlock.h', 'generic/rte_spinlock.h', - 'generic/rte_ticketlock.h', 'generic/rte_vect.h', ) install_headers(generic_headers, subdir: 'generic')
lib/eal/include/rte_mcslock.h renamed from lib/eal/include/generic/rte_mcslock.h +8 -0
@@ -19,6 +19,10 @@* they acquired the lock. */ +#ifdef __cplusplus +extern "C" { +#endif +#include <rte_lcore.h> #include <rte_common.h> #include <rte_pause.h>
@@ -169,4 +173,8 @@ rte_mcslock_is_locked(rte_mcslock_t *msl)return (__atomic_load_n (&msl, __ATOMIC_RELAXED) !=NULL ); } +#ifdef __cplusplus +} +#endif +#endif /* _RTE_MCSLOCK_H_ */
lib/eal/include/rte_pflock.h renamed from lib/eal/include/generic/rte_pflock.h +0 -0
lib/eal/include/rte_ticketlock.h renamed from lib/eal/include/generic/rte_ticketlock.h +0 -0
lib/eal/ppc/include/meson.build +0 -3
@@ -8,15 +8,12 @@ arch_headers = files( 'rte_cpuflags.h', 'rte_cycles.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) install_headers(arch_headers, subdir: get_option('include_subdir_arch'))
lib/eal/ppc/include/rte_mcslock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_PPC_64_H_ -#define _RTE_MCSLOCK_PPC_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_PPC_64_H_ */
lib/eal/ppc/include/rte_pflock.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ -#ifndef _RTE_PFLOCK_PPC_64_H_ -#define _RTE_PFLOCK_PPC_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_PPC_64_H_ */
lib/eal/ppc/include/rte_ticketlock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* 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_ */
lib/eal/riscv/include/meson.build +0 -3
@@ -9,15 +9,12 @@ arch_headers = files( 'rte_cpuflags.h', 'rte_cycles.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) install_headers(arch_headers, subdir: get_option('include_subdir_arch'))
lib/eal/riscv/include/rte_mcslock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef RTE_MCSLOCK_RISCV_H -#define RTE_MCSLOCK_RISCV_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* RTE_MCSLOCK_RISCV_H */
lib/eal/riscv/include/rte_pflock.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ -#ifndef RTE_PFLOCK_RISCV_H -#define RTE_PFLOCK_RISCV_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* RTE_PFLOCK_RISCV_H */
lib/eal/riscv/include/rte_ticketlock.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -* Copyright(c) 2022 StarFive -* Copyright(c) 2022 SiFive -* Copyright(c) 2022 Semihalf -*/ - -#ifndef RTE_TICKETLOCK_RISCV_H -#define RTE_TICKETLOCK_RISCV_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_ticketlock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* RTE_TICKETLOCK_RISCV_H */
lib/eal/x86/include/meson.build +0 -3
@@ -7,16 +7,13 @@ arch_headers = files( 'rte_cpuflags.h', 'rte_cycles.h', 'rte_io.h', - 'rte_mcslock.h', 'rte_memcpy.h', 'rte_pause.h', - 'rte_pflock.h', 'rte_power_intrinsics.h', 'rte_prefetch.h', 'rte_rtm.h', 'rte_rwlock.h', 'rte_spinlock.h', - 'rte_ticketlock.h', 'rte_vect.h', ) arch_indirect_headers = files(
lib/eal/x86/include/rte_mcslock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019 Arm Limited -*/ - -#ifndef _RTE_MCSLOCK_X86_64_H_ -#define _RTE_MCSLOCK_X86_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_mcslock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_MCSLOCK_X86_64_H_ */
lib/eal/x86/include/rte_pflock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2021 Microsoft Corporation -*/ - -#ifndef _RTE_PFLOCK_X86_64_H_ -#define _RTE_PFLOCK_X86_64_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "generic/rte_pflock.h" - -#ifdef __cplusplus -} -#endif - -#endif /* _RTE_PFLOCK_X86_64_H_ */
lib/eal/x86/include/rte_ticketlock.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* 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_ */
Signature · 1 line
2.36.1
Quoted 6 lines · David Marchand
MCS lock, PF lock and Ticket lock have no arch specific implementation, there is no need for the extra redirection in headers.
Signed-off-by David Marchand <[email protected]>
Quoted 9 lines
---
Note: this was mentionned during the seqlock patch review, and I spotted it again, while reviewing the RISC-V port, and I see the same for a next architecture too. So better clean this up as we don't need the redirection.Changes since v1:
- rebased following RISC-V merge,
Thanks, this works just fine for RISC-V.
Thomas Monjalon
Applied08/06/2022 15:16, Stanisław Kardach:
Quoted 13 lines · David Marchand
Quoted 12 lines
MCS lock, PF lock and Ticket lock have no arch specific implementation, there is no need for the extra redirection in headers.
Signed-off-by David Marchand <[email protected]>---
Note: this was mentionned during the seqlock patch review, and I spotted it again, while reviewing the RISC-V port, and I see the same for a next architecture too. So better clean this up as we don't need the redirection.
Quoted 6 lines
Quoted 3 lines
Changes since v1:
- rebased following RISC-V merge,Thanks, this works just fine for RISC-V.
Applied, thanks.