OSDN Git Service

ARM: 8238/1: mm: Refine set_memory_* functions
authorJungseung Lee <js07.lee@gmail.com>
Sat, 29 Nov 2014 02:02:11 +0000 (03:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Dec 2014 16:00:05 +0000 (16:00 +0000)
commit4e802cfd74e6351cb937997996de9ca2e67df9f2
tree247b20f6c8b42bf3dc5fc9aeaa0ff52af96f5e6c
parent12e669b4874274caaefd20d3c729471b8ebe8d93
ARM: 8238/1: mm: Refine set_memory_* functions

set_memory_* functions have same implementation
except memory attribute.

This patch makes to use common function for these, and pull out
the functions into arch/arm/mm/pageattr.c like arm64 did.
It will reduce code size and enhance the readability.

Signed-off-by: Jungseung Lee <js07.lee@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/Makefile
arch/arm/mm/mmu.c
arch/arm/mm/pageattr.c [new file with mode: 0644]