Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #ifndef __ASM_GENERIC_SPINLOCK_TYPES_H
0004 #define __ASM_GENERIC_SPINLOCK_TYPES_H
0005 
0006 #include <linux/types.h>
0007 typedef atomic_t arch_spinlock_t;
0008 
0009 /*
0010  * qrwlock_types depends on arch_spinlock_t, so we must typedef that before the
0011  * include.
0012  */
0013 #include <asm/qrwlock_types.h>
0014 
0015 #define __ARCH_SPIN_LOCK_UNLOCKED   ATOMIC_INIT(0)
0016 
0017 #endif /* __ASM_GENERIC_SPINLOCK_TYPES_H */