parisc: Add memory barrier to asm pdc and sync instructions
authorHelge Deller <deller@gmx.de>
Sat, 27 Apr 2019 21:57:49 +0000 (23:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:21:59 +0000 (18:21 +0200)
commit62c78938e3ee3de18de59550eb20f3e18b0143c0
treecad62beaa31715cf463416206181f5c7ba354723
parent81641f9c6039342fdc6040fe37be5275bd50ef26
parisc: Add memory barrier to asm pdc and sync instructions

commit 2d94a832e246ac00fd32eec241e6f1aa6fbc5700 upstream.

Add compiler memory barriers to ensure the compiler doesn't reorder memory
operations around these instructions.

Cc: stable@vger.kernel.org # v4.20+
Fixes: 3847dab77421 ("parisc: Add alternative coding infrastructure")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/cache.h