xref: /OK3568_Linux_fs/kernel/arch/sh/include/asm/spinlock.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun  *
3*4882a593Smuzhiyun  * include/asm-sh/spinlock.h
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2002, 2003 Paul Mundt
6*4882a593Smuzhiyun  * Copyright (C) 2006, 2007 Akio Idehara
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun #ifndef __ASM_SH_SPINLOCK_H
9*4882a593Smuzhiyun #define __ASM_SH_SPINLOCK_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #if defined(CONFIG_CPU_SH4A)
12*4882a593Smuzhiyun #include <asm/spinlock-llsc.h>
13*4882a593Smuzhiyun #elif defined(CONFIG_CPU_J2)
14*4882a593Smuzhiyun #include <asm/spinlock-cas.h>
15*4882a593Smuzhiyun #else
16*4882a593Smuzhiyun #error "The configured cpu type does not support spinlocks"
17*4882a593Smuzhiyun #endif
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #endif /* __ASM_SH_SPINLOCK_H */
20