blob: a7d21da16b6a07eb6c63989ee4810e22e8e9aed1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
Ralf Baechlef65e4fa2006-09-28 01:45:21 +01006 * Copyright (C) 1999, 2000, 06 Ralf Baechle (ralf@linux-mips.org)
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 */
9#ifndef _ASM_SPINLOCK_H
10#define _ASM_SPINLOCK_H
11
Peter Zijlstra726328d2016-05-26 10:35:03 +020012#include <asm/processor.h>
Paul Burton25da4e92017-06-09 17:26:42 -070013#include <asm/qrwlock.h>
Paul Burton0b17c962017-06-09 17:26:43 -070014#include <asm/qspinlock.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Thomas Gleixnere5931942009-12-03 20:08:46 +010016#define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
17#define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
Ralf Baechle65316fd2006-08-31 14:16:06 +010018
Thomas Gleixner0199c4e2009-12-02 20:01:25 +010019#define arch_spin_relax(lock) cpu_relax()
20#define arch_read_relax(lock) cpu_relax()
21#define arch_write_relax(lock) cpu_relax()
Martin Schwidefskyef6edc92006-09-30 23:27:43 -070022
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif /* _ASM_SPINLOCK_H */