]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/spinlock.h
Merge tag 'jfs-4.2' of git://github.com/kleikamp/linux-shaggy
[karo-tx-linux.git] / arch / x86 / include / asm / spinlock.h
index 64b611782ef0856f1744611936f76d6e8de1bb57..be0a05913b9105b62122afbbbef99c6146b2dbf6 100644 (file)
 extern struct static_key paravirt_ticketlocks_enabled;
 static __always_inline bool static_key_false(struct static_key *key);
 
+#ifdef CONFIG_QUEUED_SPINLOCKS
+#include <asm/qspinlock.h>
+#else
+
 #ifdef CONFIG_PARAVIRT_SPINLOCKS
 
 static inline void __ticket_enter_slowpath(arch_spinlock_t *lock)
@@ -196,6 +200,7 @@ static inline void arch_spin_unlock_wait(arch_spinlock_t *lock)
                cpu_relax();
        }
 }
+#endif /* CONFIG_QUEUED_SPINLOCKS */
 
 /*
  * Read-write spinlocks, allowing multiple readers