diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2017-11-28 17:06:31 -0500 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2017-11-28 17:06:31 -0500 |
commit | bf730552734372e45b10fe056726de1950fdfdde (patch) | |
tree | bb7872d1a46c98aa3fe9cd7c27f24bde1a4d1f90 | |
parent | c901e45a999a1935d7adf653e1cf12dfbcd737aa (diff) |
RISC-V: remove spin_unlock_wait()
This was removed from the other architectures in commit
952111d7db02 ("arch: Remove spin_unlock_wait() arch-specific
definitions"). That landed between when we got upstream and when our
patches were reviewed, so this is a followup patch.
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r-- | arch/riscv/include/asm/spinlock.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/riscv/include/asm/spinlock.h b/arch/riscv/include/asm/spinlock.h index a6a005c4f2fb..2fd27e8ef1fd 100644 --- a/arch/riscv/include/asm/spinlock.h +++ b/arch/riscv/include/asm/spinlock.h | |||
@@ -58,15 +58,6 @@ static inline void arch_spin_lock(arch_spinlock_t *lock) | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) | ||
62 | { | ||
63 | smp_rmb(); | ||
64 | do { | ||
65 | cpu_relax(); | ||
66 | } while (arch_spin_is_locked(lock)); | ||
67 | smp_acquire__after_ctrl_dep(); | ||
68 | } | ||
69 | |||
70 | /***********************************************************/ | 61 | /***********************************************************/ |
71 | 62 | ||
72 | static inline void arch_read_lock(arch_rwlock_t *lock) | 63 | static inline void arch_read_lock(arch_rwlock_t *lock) |