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
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>
16 #error "The configured cpu type does not support spinlocks"
19 #endif /* __ASM_SH_SPINLOCK_H */