powerpc/64s: Implement queued spinlocks and rwlocks
[linux-2.6-microblaze.git] / arch / powerpc / include / asm / spinlock.h
index 21357fe..434615f 100644 (file)
@@ -3,7 +3,12 @@
 #define __ASM_SPINLOCK_H
 #ifdef __KERNEL__
 
+#ifdef CONFIG_PPC_QUEUED_SPINLOCKS
+#include <asm/qspinlock.h>
+#include <asm/qrwlock.h>
+#else
 #include <asm/simple_spinlock.h>
+#endif
 
 #endif /* __KERNEL__ */
 #endif /* __ASM_SPINLOCK_H */