Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
[sfrench/cifs-2.6.git] / arch / sparc / include / asm / spinlock_64.h
1 /* spinlock.h: 64-bit Sparc spinlock support.
2  *
3  * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
4  */
5
6 #ifndef __SPARC64_SPINLOCK_H
7 #define __SPARC64_SPINLOCK_H
8
9 #ifndef __ASSEMBLY__
10
11 #include <asm/processor.h>
12 #include <asm/barrier.h>
13 #include <asm/qrwlock.h>
14 #include <asm/qspinlock.h>
15
16 #define arch_read_lock_flags(p, f) arch_read_lock(p)
17 #define arch_write_lock_flags(p, f) arch_write_lock(p)
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 /* !(__ASSEMBLY__) */
24
25 #endif /* !(__SPARC64_SPINLOCK_H) */