spinlock.h 578 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
/*
 * include/asm-sh/spinlock.h
 *
 * Copyright (C) 2002, 2003 Paul Mundt
5
 * Copyright (C) 2006, 2007 Akio Idehara
L
Linus Torvalds 已提交
6 7 8 9 10 11 12 13
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 */
#ifndef __ASM_SH_SPINLOCK_H
#define __ASM_SH_SPINLOCK_H

14 15 16 17 18 19
#if defined(CONFIG_CPU_SH4A)
#include <asm/spinlock-llsc.h>
#elif defined(CONFIG_CPU_J2)
#include <asm/spinlock-cas.h>
#else
#error "The configured cpu type does not support spinlocks"
20
#endif
L
Linus Torvalds 已提交
21 22

#endif /* __ASM_SH_SPINLOCK_H */