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