xref: /openbmc/linux/arch/sh/include/asm/spinlock.h (revision 6a0abce4)
16a0abce4SKuninori Morimoto /* SPDX-License-Identifier: GPL-2.0
26a0abce4SKuninori Morimoto  *
3f15cbe6fSPaul Mundt  * include/asm-sh/spinlock.h
4f15cbe6fSPaul Mundt  *
5f15cbe6fSPaul Mundt  * Copyright (C) 2002, 2003 Paul Mundt
6f15cbe6fSPaul Mundt  * Copyright (C) 2006, 2007 Akio Idehara
7f15cbe6fSPaul Mundt  */
8f15cbe6fSPaul Mundt #ifndef __ASM_SH_SPINLOCK_H
9f15cbe6fSPaul Mundt #define __ASM_SH_SPINLOCK_H
10f15cbe6fSPaul Mundt 
112b47d54eSRich Felker #if defined(CONFIG_CPU_SH4A)
122b47d54eSRich Felker #include <asm/spinlock-llsc.h>
132b47d54eSRich Felker #elif defined(CONFIG_CPU_J2)
142b47d54eSRich Felker #include <asm/spinlock-cas.h>
152b47d54eSRich Felker #else
162b47d54eSRich Felker #error "The configured cpu type does not support spinlocks"
17f15cbe6fSPaul Mundt #endif
18f15cbe6fSPaul Mundt 
19f15cbe6fSPaul Mundt #endif /* __ASM_SH_SPINLOCK_H */
20