1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* spinlock.h: 64-bit Sparc spinlock support.
4 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
7 #ifndef __SPARC64_SPINLOCK_H
8 #define __SPARC64_SPINLOCK_H
12 #include <asm/processor.h>
13 #include <asm/barrier.h>
14 #include <asm/qrwlock.h>
15 #include <asm/qspinlock.h>
17 #define arch_read_lock_flags(p, f) arch_read_lock(p)
18 #define arch_write_lock_flags(p, f) arch_write_lock(p)
20 #define arch_spin_relax(lock) cpu_relax()
21 #define arch_read_relax(lock) cpu_relax()
22 #define arch_write_relax(lock) cpu_relax()
24 #endif /* !(__ASSEMBLY__) */
26 #endif /* !(__SPARC64_SPINLOCK_H) */