From 2b922fcdbd511da9d970c5a24cb1169420aa9356 Mon Sep 17 00:00:00 2001 From: Heesub Shin Date: Tue, 22 Mar 2016 15:40:40 +0900 Subject: [PATCH] ARMv7-R: remove the redundant update on SCTLR mpu_control() is invoking cp15_wrsctlr() around SCTLR update redundantly. Signed-off-by: Heesub Shin --- arch/arm/src/armv7-r/mpu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/src/armv7-r/mpu.h b/arch/arm/src/armv7-r/mpu.h index 9d11df1997..5245375bb0 100644 --- a/arch/arm/src/armv7-r/mpu.h +++ b/arch/arm/src/armv7-r/mpu.h @@ -392,7 +392,6 @@ static inline void mpu_control(bool enable) if (enable) { regval |= (SCTLR_M | SCTLR_BR); - cp15_wrsctlr(regval); } else {