1 #ifndef __ASM_MCS_LOCK_H
2 #define __ASM_MCS_LOCK_H
5 #include <asm/spinlock.h>
7 /* MCS spin-locking. */
8 #define arch_mcs_spin_lock_contended(lock) \
10 /* Ensure prior stores are observed before we enter wfe. */ \
12 while (!(smp_load_acquire(lock))) \
16 #define arch_mcs_spin_unlock_contended(lock) \
18 smp_store_release(lock, 1); \
22 #endif /* CONFIG_SMP */
23 #endif /* __ASM_MCS_LOCK_H */