From 2bf3604c415c9d75311141b8eb6ac8780ef74420 Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Mon, 8 Mar 2021 17:59:48 -0800 Subject: powerpc/spinlock: Define smp_mb__after_spinlock only once Instead of both queued and simple spinlocks doing it. Move it into the arch's spinlock.h. Signed-off-by: Davidlohr Bueso Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210309015950.27688-2-dave@stgolabs.net --- arch/powerpc/include/asm/simple_spinlock.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'arch/powerpc/include/asm/simple_spinlock.h') diff --git a/arch/powerpc/include/asm/simple_spinlock.h b/arch/powerpc/include/asm/simple_spinlock.h index 5b862de29dff..da5d40cb8de0 100644 --- a/arch/powerpc/include/asm/simple_spinlock.h +++ b/arch/powerpc/include/asm/simple_spinlock.h @@ -282,7 +282,4 @@ static inline void arch_write_unlock(arch_rwlock_t *rw) #define arch_read_relax(lock) rw_yield(lock) #define arch_write_relax(lock) rw_yield(lock) -/* See include/linux/spinlock.h */ -#define smp_mb__after_spinlock() smp_mb() - #endif /* _ASM_POWERPC_SIMPLE_SPINLOCK_H */ -- cgit v1.2.3