Skip to contentSkip to conversation

RISC-V: remove spin_unlock_wait()

PATCH New Palmer Dabbelt 1 participant 1 message Nov 8, 2017

Subsystems (2)
lore
Share & tools
lore

Palmer Dabbelt

author maintainer
#0 lore raw

PATCH 1/1 RISC-V: remove spin_unlock_wait()

This was removed from the other architectures in commit 952111d7db02 ("arch: Remove spin_unlock_wait() arch-specific definitions"). I don't want to rebase this into our outstanding patches because they've already been reviewed, so I'm going to treat this as a separate patch.

---
 arch/riscv/include/asm/spinlock.h | 9 ---------
 1 file changed, 9 deletions(-)
arch/riscv/include/asm/spinlock.h +0 -9
index b3b394ffaf7e..7e06eee8f256 100644
@@ -59,15 +59,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 int arch_read_can_lock(arch_rwlock_t *lock)
Signature · 1 line
2.13.6