1 /* SPDX-License-Identifier: BSD-3-Clause 2 */ 3 /* copied from ppc_64 */ 4 5 #ifndef _RTE_RWLOCK_ARM_H_ 6 #define _RTE_RWLOCK_ARM_H_ 7 8 #include "generic/rte_rwlock.h" 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 static inline void 15 rte_rwlock_read_lock_tm(rte_rwlock_t *rwl) 16 { 17 rte_rwlock_read_lock(rwl); 18 } 19 20 static inline void 21 rte_rwlock_read_unlock_tm(rte_rwlock_t *rwl) 22 { 23 rte_rwlock_read_unlock(rwl); 24 } 25 26 static inline void 27 rte_rwlock_write_lock_tm(rte_rwlock_t *rwl) 28 { 29 rte_rwlock_write_lock(rwl); 30 } 31 32 static inline void 33 rte_rwlock_write_unlock_tm(rte_rwlock_t *rwl) 34 { 35 rte_rwlock_write_unlock(rwl); 36 } 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif /* _RTE_RWLOCK_ARM_H_ */ 43