]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
f5e706ad SR |
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 | ||
f5e706ad SR |
10 | #ifndef __ASSEMBLY__ |
11 | ||
726328d9 PZ |
12 | #include <asm/processor.h> |
13 | #include <asm/barrier.h> | |
a37594f1 | 14 | #include <asm/qrwlock.h> |
145d9785 | 15 | #include <asm/qspinlock.h> |
f5e706ad | 16 | |
e5931943 | 17 | #define arch_read_lock_flags(p, f) arch_read_lock(p) |
e5931943 | 18 | #define arch_write_lock_flags(p, f) arch_write_lock(p) |
e5931943 | 19 | |
0199c4e6 TG |
20 | #define arch_spin_relax(lock) cpu_relax() |
21 | #define arch_read_relax(lock) cpu_relax() | |
22 | #define arch_write_relax(lock) cpu_relax() | |
f5e706ad SR |
23 | |
24 | #endif /* !(__ASSEMBLY__) */ | |
25 | ||
26 | #endif /* !(__SPARC64_SPINLOCK_H) */ |