xref: /linux/include/asm-generic/mcs_spinlock.h (revision 6315d93541f8a5f77c5ef5c4f25233e66d189603)
1 #ifndef __ASM_MCS_SPINLOCK_H
2 #define __ASM_MCS_SPINLOCK_H
3 
4 struct mcs_spinlock {
5 	struct mcs_spinlock *next;
6 	int locked; /* 1 if lock acquired */
7 	int count;  /* nesting count, see qspinlock.c */
8 };
9 
10 /*
11  * Architectures can define their own:
12  *
13  *   arch_mcs_spin_lock_contended(l)
14  *   arch_mcs_spin_unlock_contended(l)
15  *
16  * See kernel/locking/mcs_spinlock.c.
17  */
18 
19 #endif /* __ASM_MCS_SPINLOCK_H */
20