162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci *
362306a36Sopenharmony_ci * include/asm-sh/spinlock.h
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2002, 2003 Paul Mundt
662306a36Sopenharmony_ci * Copyright (C) 2006, 2007 Akio Idehara
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci#ifndef __ASM_SH_SPINLOCK_H
962306a36Sopenharmony_ci#define __ASM_SH_SPINLOCK_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#if defined(CONFIG_CPU_SH4A)
1262306a36Sopenharmony_ci#include <asm/spinlock-llsc.h>
1362306a36Sopenharmony_ci#elif defined(CONFIG_CPU_J2)
1462306a36Sopenharmony_ci#include <asm/spinlock-cas.h>
1562306a36Sopenharmony_ci#else
1662306a36Sopenharmony_ci#error "The configured cpu type does not support spinlocks"
1762306a36Sopenharmony_ci#endif
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif /* __ASM_SH_SPINLOCK_H */
20