| 1 |
|
| 2 | #ifndef __ASM_SPINLOCK_H
|
| 3 | #define __ASM_SPINLOCK_H
|
| 4 | #ifdef __KERNEL__
|
| 5 |
|
| 6 | #ifdef CONFIG_PPC_QUEUED_SPINLOCKS
|
| 7 | #include <asm/qspinlock.h>
|
| 8 | #include <asm/qrwlock.h>
|
| 9 | #else
|
| 10 | #include <asm/simple_spinlock.h>
|
| 11 | #endif
|
| 12 |
|
| 13 |
|
| 14 | #define smp_mb__after_spinlock() smp_mb()
|
| 15 |
|
| 16 | #ifndef CONFIG_PPC_QUEUED_SPINLOCKS
|
| 17 | static inline void pv_spinlocks_init(void) { }
|
| 18 | #endif
|
| 19 |
|
| 20 | #endif
|
| 21 | #endif
|