]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8571/1: nommu: fix PMSAv7 setup
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 4 May 2016 09:37:22 +0000 (10:37 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 5 May 2016 18:03:01 +0000 (19:03 +0100)
commit477a54ed5cd65811a6dc421d61168da7f3d84719
tree219eb0f8229ded4af09f7eefd38f9c59f4ef6105
parentf1d9e5f68b8e4f2b1b41b2b3cc72ac0ba66c290e
ARM: 8571/1: nommu: fix PMSAv7 setup

Commit b177076 (ARM: 8025/1: Get rid of meminfo) broke the support for
MPU on ARMv7-R. This patch adapts the code inside CONFIG_ARM_MPU to use
memblocks appropriately.

MPU initialisation only uses the first memory region, and removes all
subsequent ones. Because looping over all regions that need removal is
inefficient, and memblock_remove already handles memory ranges, we can
flatten the 'for_each_memblock' part.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/nommu.c