#ifndef __ASM_SPINLOCK_H #define __ASM_SPINLOCK_H #include <asm/barrier.h> #include <asm/processor.h> #ifdef CONFIG_METAG_ATOMICITY_LOCK1 #include <asm/spinlock_lock1.h> #else #include <asm/spinlock_lnkget.h> #endif /* * both lock1 and lnkget are test-and-set spinlocks with 0 unlocked and 1 * locked. */
static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) { smp_cond_load_acquire(&lock->lock, !VAL); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 18 | 81.82% | 1 | 50.00% |
James Hogan | 4 | 18.18% | 1 | 50.00% |
Total | 22 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
James Hogan | 74 | 74.75% | 1 | 50.00% |
Peter Zijlstra | 25 | 25.25% | 1 | 50.00% |
Total | 99 | 100.00% | 2 | 100.00% |