diff options
Diffstat (limited to 'kernel/arch/x86/include/asm/spinlock_types.h')
-rw-r--r-- | kernel/arch/x86/include/asm/spinlock_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/arch/x86/include/asm/spinlock_types.h b/kernel/arch/x86/include/asm/spinlock_types.h index 5f9d7572d..65c3e37f8 100644 --- a/kernel/arch/x86/include/asm/spinlock_types.h +++ b/kernel/arch/x86/include/asm/spinlock_types.h @@ -23,6 +23,9 @@ typedef u32 __ticketpair_t; #define TICKET_SHIFT (sizeof(__ticket_t) * 8) +#ifdef CONFIG_QUEUED_SPINLOCKS +#include <asm-generic/qspinlock_types.h> +#else typedef struct arch_spinlock { union { __ticketpair_t head_tail; @@ -33,6 +36,7 @@ typedef struct arch_spinlock { } arch_spinlock_t; #define __ARCH_SPIN_LOCK_UNLOCKED { { 0 } } +#endif /* CONFIG_QUEUED_SPINLOCKS */ #include <asm-generic/qrwlock_types.h> |