]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:16:20 +0000 (18:16 +0200)
commit7049b323c0646531647c285843b618f5d936041d
tree1eef5d78eeb7300481ac2c2f114ab11664d6a74c
parente7be05c847d314df0d3864a6a0f30a5d026c6ceb
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