Linux 6.13-rc4
[linux.git] / arch / sh / include / asm / spinlock.h
blobfa6801f63551cebe6de9a25805b9bb69d3dafa9e
1 /* SPDX-License-Identifier: GPL-2.0
3 * include/asm-sh/spinlock.h
5 * Copyright (C) 2002, 2003 Paul Mundt
6 * Copyright (C) 2006, 2007 Akio Idehara
7 */
8 #ifndef __ASM_SH_SPINLOCK_H
9 #define __ASM_SH_SPINLOCK_H
11 #if defined(CONFIG_CPU_SH4A)
12 #include <asm/spinlock-llsc.h>
13 #elif defined(CONFIG_CPU_J2)
14 #include <asm/spinlock-cas.h>
15 #else
16 #error "The configured cpu type does not support spinlocks"
17 #endif
19 #endif /* __ASM_SH_SPINLOCK_H */