diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2017-11-28 23:06:31 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2017-11-28 23:06:31 +0100 |
commit | bf730552734372e45b10fe056726de1950fdfdde (patch) | |
tree | bb7872d1a46c98aa3fe9cd7c27f24bde1a4d1f90 /arch/riscv | |
parent | RISC-V: `sfence.vma` orderes the instruction cache (diff) | |
download | linux-bf730552734372e45b10fe056726de1950fdfdde.tar.xz linux-bf730552734372e45b10fe056726de1950fdfdde.zip |
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>
Diffstat (limited to 'arch/riscv')
-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) } } -static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) -{ - smp_rmb(); - do { - cpu_relax(); - } while (arch_spin_is_locked(lock)); - smp_acquire__after_ctrl_dep(); -} - /***********************************************************/ static inline void arch_read_lock(arch_rwlock_t *lock) |