Go to the documentation of this file. 1 #ifndef __ASM_SPINLOCK_H
2 #define __ASM_SPINLOCK_H
4 #include <asm/barrier.h>
6 #include <asm/processor.h>
7 #include <asm/spinlock_types.h>
15 #define arch_spin_lock(lock) arch_spin_lock_flags(lock, 0)
16 #define arch_spin_unlock_wait(x) \
17 do { cpu_relax(); } while (arch_spin_is_locked(x))
22 volatile unsigned int *
a;
39 volatile unsigned int *
a;
48 volatile unsigned int *
a;
191 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
192 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
194 #define arch_spin_relax(lock) cpu_relax()
195 #define arch_read_relax(lock) cpu_relax()
196 #define arch_write_relax(lock) cpu_relax()