Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef __ASM_SPINLOCK_H
0003 #define __ASM_SPINLOCK_H
0004 #ifdef __KERNEL__
0005 
0006 #ifdef CONFIG_PPC_QUEUED_SPINLOCKS
0007 #include <asm/qspinlock.h>
0008 #include <asm/qrwlock.h>
0009 #else
0010 #include <asm/simple_spinlock.h>
0011 #endif
0012 
0013 /* See include/linux/spinlock.h */
0014 #define smp_mb__after_spinlock()    smp_mb()
0015 
0016 #ifndef CONFIG_PARAVIRT_SPINLOCKS
0017 static inline void pv_spinlocks_init(void) { }
0018 #endif
0019 
0020 #endif /* __KERNEL__ */
0021 #endif /* __ASM_SPINLOCK_H */