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