ARMv7-R: remove the redundant update on SCTLR
mpu_control() is invoking cp15_wrsctlr() around SCTLR update redundantly. Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
This commit is contained in:
parent
05d477661b
commit
2b922fcdbd
@ -392,7 +392,6 @@ static inline void mpu_control(bool enable)
|
|||||||
if (enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
regval |= (SCTLR_M | SCTLR_BR);
|
regval |= (SCTLR_M | SCTLR_BR);
|
||||||
cp15_wrsctlr(regval);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user