Go to the documentation of this file. 1 #ifndef __ASM_ARCH_SPINLOCK_H
2 #define __ASM_ARCH_SPINLOCK_H
6 #define RW_LOCK_BIAS 0x01000000
14 return *(
volatile signed char *)(&(x)->slock) <= 0;
19 __asm__ volatile (
"move.d %1,%0" \
20 :
"=m" (lock->
slock) \
61 return (
int)(
x)->lock > 0;
72 while (rw->
lock == 0);
124 #define _raw_read_lock_flags(lock, flags) _raw_read_lock(lock)
125 #define _raw_write_lock_flags(lock, flags) _raw_write_lock(lock)
127 #define arch_spin_relax(lock) cpu_relax()
128 #define arch_read_relax(lock) cpu_relax()
129 #define arch_write_relax(lock) cpu_relax()