linux/arch/mips/include/asm/spinlock.h
<<
>>
Prefs
   1/*
   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 *
   6 * Copyright (C) 1999, 2000, 06 Ralf Baechle (ralf@linux-mips.org)
   7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
   8 */
   9#ifndef _ASM_SPINLOCK_H
  10#define _ASM_SPINLOCK_H
  11
  12#include <asm/processor.h>
  13#include <asm/qrwlock.h>
  14#include <asm/qspinlock.h>
  15
  16#define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
  17#define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
  18
  19#define arch_spin_relax(lock)   cpu_relax()
  20#define arch_read_relax(lock)   cpu_relax()
  21#define arch_write_relax(lock)  cpu_relax()
  22
  23#endif /* _ASM_SPINLOCK_H */
  24