1#ifndef __ASM_SPINLOCK_H
2#define __ASM_SPINLOCK_H
3
4#ifdef CONFIG_METAG_ATOMICITY_LOCK1
5#include <asm/spinlock_lock1.h>
6#else
7#include <asm/spinlock_lnkget.h>
8#endif
9
10#define arch_spin_unlock_wait(lock) \
11	do { while (arch_spin_is_locked(lock)) cpu_relax(); } while (0)
12
13#define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock)
14
15#define	arch_read_lock_flags(lock, flags) arch_read_lock(lock)
16#define	arch_write_lock_flags(lock, flags) arch_write_lock(lock)
17
18#define arch_spin_relax(lock)	cpu_relax()
19#define arch_read_relax(lock)	cpu_relax()
20#define arch_write_relax(lock)	cpu_relax()
21
22#endif /* __ASM_SPINLOCK_H */
23