Imported Upstream version 16.04
[deb_dpdk.git] / lib / librte_eal / common / include / arch / arm / rte_rwlock.h
1 /* copied from ppc_64 */
2
3 #ifndef _RTE_RWLOCK_ARM_H_
4 #define _RTE_RWLOCK_ARM_H_
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 #include "generic/rte_rwlock.h"
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_ARM_H_ */