diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2021-03-08 17:59:48 -0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-03-26 23:19:43 +1100 |
commit | 2bf3604c415c9d75311141b8eb6ac8780ef74420 (patch) | |
tree | c108dd0cc3db65d82c1625f4797f98b86f06ea3a /arch/powerpc/include/asm/simple_spinlock.h | |
parent | 93c043e393af7fa218c928d8c62396ba28f1bb84 (diff) |
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 <dbueso@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210309015950.27688-2-dave@stgolabs.net
Diffstat (limited to 'arch/powerpc/include/asm/simple_spinlock.h')
-rw-r--r-- | arch/powerpc/include/asm/simple_spinlock.h | 3 |
1 files changed, 0 insertions, 3 deletions
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 */ |