xref: /dpdk/lib/eal/ppc/include/rte_rwlock.h (revision 99a2dd95)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  */
3 #ifndef _RTE_RWLOCK_PPC_64_H_
4 #define _RTE_RWLOCK_PPC_64_H_
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 #include "generic/rte_rwlock.h"
11 
12 static inline void
rte_rwlock_read_lock_tm(rte_rwlock_t * rwl)13 rte_rwlock_read_lock_tm(rte_rwlock_t *rwl)
14 {
15 	rte_rwlock_read_lock(rwl);
16 }
17 
18 static inline void
rte_rwlock_read_unlock_tm(rte_rwlock_t * rwl)19 rte_rwlock_read_unlock_tm(rte_rwlock_t *rwl)
20 {
21 	rte_rwlock_read_unlock(rwl);
22 }
23 
24 static inline void
rte_rwlock_write_lock_tm(rte_rwlock_t * rwl)25 rte_rwlock_write_lock_tm(rte_rwlock_t *rwl)
26 {
27 	rte_rwlock_write_lock(rwl);
28 }
29 
30 static inline void
rte_rwlock_write_unlock_tm(rte_rwlock_t * rwl)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