David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 |
| 2 | * |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 3 | * include/asm-sh/spinlock.h |
| 4 | * |
| 5 | * Copyright (C) 2002, 2003 Paul Mundt |
| 6 | * Copyright (C) 2006, 2007 Akio Idehara |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | */ |
| 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 */ |