2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*
|
2006-09-28 00:45:21 +00:00
|
|
|
* Copyright (C) 1999, 2000, 06 Ralf Baechle (ralf@linux-mips.org)
|
2005-04-16 22:20:36 +00:00
|
|
|
* Copyright (C) 1999, 2000 Silicon Graphics, Inc.
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_SPINLOCK_H
|
|
|
|
#define _ASM_SPINLOCK_H
|
|
|
|
|
2016-05-26 08:35:03 +00:00
|
|
|
#include <asm/processor.h>
|
2017-06-10 00:26:42 +00:00
|
|
|
#include <asm/qrwlock.h>
|
2017-06-10 00:26:43 +00:00
|
|
|
#include <asm/qspinlock.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-12-03 19:08:46 +00:00
|
|
|
#define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
|
|
|
|
#define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
|
2006-08-31 13:16:06 +00:00
|
|
|
|
2009-12-02 19:01:25 +00:00
|
|
|
#define arch_spin_relax(lock) cpu_relax()
|
|
|
|
#define arch_read_relax(lock) cpu_relax()
|
|
|
|
#define arch_write_relax(lock) cpu_relax()
|
2006-10-01 06:27:43 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _ASM_SPINLOCK_H */
|