xref: /OK3568_Linux_fs/kernel/arch/xtensa/include/asm/spinlock.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * include/asm-xtensa/spinlock.h
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
5*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
6*4882a593Smuzhiyun  * for more details.
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright (C) 2001 - 2005 Tensilica Inc.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef _XTENSA_SPINLOCK_H
12*4882a593Smuzhiyun #define _XTENSA_SPINLOCK_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #include <asm/barrier.h>
15*4882a593Smuzhiyun #include <asm/qrwlock.h>
16*4882a593Smuzhiyun #include <asm/qspinlock.h>
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #define smp_mb__after_spinlock()	smp_mb()
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif	/* _XTENSA_SPINLOCK_H */
21