aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2018-08-12 16:31:17 -0400
committerHelge Deller <deller@gmx.de>2018-08-13 09:31:25 +0200
commit3b885ac1dc35b87a39ee176a6c7e2af9c789d8b8 (patch)
tree02d868f6c7430cec3e2f66eac338056dbd6908c4 /arch/parisc/kernel
parentparisc: Remove ordered stores from syscall.S (diff)
downloadlinux-dev-3b885ac1dc35b87a39ee176a6c7e2af9c789d8b8.tar.xz
linux-dev-3b885ac1dc35b87a39ee176a6c7e2af9c789d8b8.zip
parisc: Remove unnecessary barriers from spinlock.h
Now that mb() is an instruction barrier, it will slow performance if we issue unnecessary barriers. The spinlock defines have a number of unnecessary barriers.  The __ldcw() define is both a hardware and compiler barrier.  The mb() barriers in the routines using __ldcw() serve no purpose. The only barrier needed is the one in arch_spin_unlock().  We need to ensure all accesses are complete prior to releasing the lock. Signed-off-by: John David Anglin <dave.anglin@bell.net> Cc: stable@vger.kernel.org # 4.0+ Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions