aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/spinlock.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-07-28 18:54:40 +0200
committerHelge Deller <deller@gmx.de>2020-07-28 18:54:40 +0200
commit6e9f06ee6c9566f3606d93182ac8f803a148504b (patch)
treed3a249ba445cdac167c333dc04a143b4069488de /arch/parisc/include/asm/spinlock.h
parentRevert "parisc: Drop LDCW barrier in CAS code when running UP" (diff)
downloadlinux-dev-6e9f06ee6c9566f3606d93182ac8f803a148504b.tar.xz
linux-dev-6e9f06ee6c9566f3606d93182ac8f803a148504b.zip
Revert "parisc: Use ldcw instruction for SMP spinlock release barrier"
This reverts commit 9e5c602186a692a7e848c0da17aed40f49d30519. No need to use the ldcw instruction as SMP spinlock release barrier. Revert it to gain back speed again. Signed-off-by: Helge Deller <deller@gmx.de> Cc: <stable@vger.kernel.org> # v5.2+
Diffstat (limited to 'arch/parisc/include/asm/spinlock.h')
-rw-r--r--arch/parisc/include/asm/spinlock.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/parisc/include/asm/spinlock.h b/arch/parisc/include/asm/spinlock.h
index d2a3337599fb..6f85ca70ce23 100644
--- a/arch/parisc/include/asm/spinlock.h
+++ b/arch/parisc/include/asm/spinlock.h
@@ -37,11 +37,7 @@ static inline void arch_spin_unlock(arch_spinlock_t *x)
volatile unsigned int *a;
a = __ldcw_align(x);
-#ifdef CONFIG_SMP
- (void) __ldcw(a);
-#else
mb();
-#endif
*a = 1;
}