ARM: 8707/1: NOMMU: Update MPU accessors to use cp15 helpers
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 16 Oct 2017 11:53:18 +0000 (12:53 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 23 Oct 2017 15:58:52 +0000 (16:58 +0100)
commite8b47e12d6c72f26a8ce85974f98a4050ac7ca24
tree319cee7289dfbde0ab0703eac01a3dd5402c2457
parent877ec119dbbf9576953efc457ede5243621ad6eb
ARM: 8707/1: NOMMU: Update MPU accessors to use cp15 helpers

Currently, inline assembly for accessing to MPU's cp15 lacks volatile
keyword which opens possibility to compiler to optimise such accesses
as soon as we start using them more intensively. Rather than fixing
inline asm, lets move MPU accessors to use cp15 helpers which do the
right thing.

Tested-by: Szemző András <sza@esh.hu>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/pmsa-v7.c