parisc: Implement __smp_store_release and __smp_load_acquire barriers
authorJohn David Anglin <dave.anglin@bell.net>
Thu, 30 Jul 2020 12:59:12 +0000 (08:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:15:07 +0000 (08:15 +0200)
commitc46716b16d6db3d51b745c18ea3fb1ff01be108e
treebf434db0c6d97854f438b81986b33115fce2f4a7
parentf6859ae7cc40ae092dbe2cea7ff5c89c60a433dd
parisc: Implement __smp_store_release and __smp_load_acquire barriers

commit e96ebd589debd9a6a793608c4ec7019c38785dea upstream.

This patch implements the __smp_store_release and __smp_load_acquire barriers
using ordered stores and loads.  This avoids the sync instruction present in
the generic implementation.

Cc: <stable@vger.kernel.org> # 4.14+
Signed-off-by: Dave Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/barrier.h