blob: fa6801f63551cebe6de9a25805b9bb69d3dafa9e [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0
2 *
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00003 * include/asm-sh/spinlock.h
4 *
5 * Copyright (C) 2002, 2003 Paul Mundt
6 * Copyright (C) 2006, 2007 Akio Idehara
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007 */
8#ifndef __ASM_SH_SPINLOCK_H
9#define __ASM_SH_SPINLOCK_H
10
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
18
19#endif /* __ASM_SH_SPINLOCK_H */