a1b6cda16a
The arch-specific directories arm, ppc and x86 in common/include/arch/ are moved as include/ sub-directories of respective arch directories: - arm/include/ - ppc/include/ - x86/include/ Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: David Christensen <drc@linux.vnet.ibm.com> Acked-by: David Marchand <david.marchand@redhat.com>
43 lines
652 B
C
43 lines
652 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/* copied from ppc_64 */
|
|
|
|
#ifndef _RTE_RWLOCK_ARM_H_
|
|
#define _RTE_RWLOCK_ARM_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "generic/rte_rwlock.h"
|
|
|
|
static inline void
|
|
rte_rwlock_read_lock_tm(rte_rwlock_t *rwl)
|
|
{
|
|
rte_rwlock_read_lock(rwl);
|
|
}
|
|
|
|
static inline void
|
|
rte_rwlock_read_unlock_tm(rte_rwlock_t *rwl)
|
|
{
|
|
rte_rwlock_read_unlock(rwl);
|
|
}
|
|
|
|
static inline void
|
|
rte_rwlock_write_lock_tm(rte_rwlock_t *rwl)
|
|
{
|
|
rte_rwlock_write_lock(rwl);
|
|
}
|
|
|
|
static inline void
|
|
rte_rwlock_write_unlock_tm(rte_rwlock_t *rwl)
|
|
{
|
|
rte_rwlock_write_unlock(rwl);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _RTE_RWLOCK_ARM_H_ */
|