]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/metag/include/asm/spinlock.h
1 #ifndef __ASM_SPINLOCK_H
2 #define __ASM_SPINLOCK_H
4 #include <asm/barrier.h>
5 #include <asm/processor.h>
7 #ifdef CONFIG_METAG_ATOMICITY_LOCK1
8 #include <asm/spinlock_lock1.h>
10 #include <asm/spinlock_lnkget.h>
14 * both lock1 and lnkget are test-and-set spinlocks with 0 unlocked and 1
18 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock)
20 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
21 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
23 #define arch_spin_relax(lock) cpu_relax()
24 #define arch_read_relax(lock) cpu_relax()
25 #define arch_write_relax(lock) cpu_relax()
27 #endif /* __ASM_SPINLOCK_H */