Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-sh/spinlock.h |
| 3 | * |
| 4 | * Copyright (C) 2002, 2003 Paul Mundt |
Paul Mundt | 8a467a5 | 2007-08-22 10:34:31 +0900 | [diff] [blame] | 5 | * Copyright (C) 2006, 2007 Akio Idehara |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
| 7 | * This file is subject to the terms and conditions of the GNU General Public |
| 8 | * License. See the file "COPYING" in the main directory of this archive |
| 9 | * for more details. |
| 10 | */ |
| 11 | #ifndef __ASM_SH_SPINLOCK_H |
| 12 | #define __ASM_SH_SPINLOCK_H |
| 13 | |
Rich Felker | 2b47d54 | 2016-07-28 19:21:10 +0000 | [diff] [blame] | 14 | #if defined(CONFIG_CPU_SH4A) |
| 15 | #include <asm/spinlock-llsc.h> |
| 16 | #elif defined(CONFIG_CPU_J2) |
| 17 | #include <asm/spinlock-cas.h> |
| 18 | #else |
| 19 | #error "The configured cpu type does not support spinlocks" |
Paul Mundt | 8a467a5 | 2007-08-22 10:34:31 +0900 | [diff] [blame] | 20 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #endif /* __ASM_SH_SPINLOCK_H */ |