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:24:17 +0000 (08:24 +0200)
commitf95d807577cf10d89936594dab66e086e9858af0
treeddbd03c14f216c9586a1d9b2076eb975a588e327
parent953dcf9b548cbca127f9bdea51697a9a787b9594
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