Skip to content

Commit bf73055

Browse files
RISC-V: remove spin_unlock_wait()
This was removed from the other architectures in commit 952111d ("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>
1 parent c901e45 commit bf73055

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/riscv/include/asm/spinlock.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ static inline void arch_spin_lock(arch_spinlock_t *lock)
5858
}
5959
}
6060

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-
7061
/***********************************************************/
7162

7263
static inline void arch_read_lock(arch_rwlock_t *lock)

0 commit comments

Comments
 (0)