rework remap_range
remap_range is for remapping regions with different cache attributes.
It is implemented for ARM and PowerPC only, the other architectures only
provide stubs.
Currently the new cache attributes are passed in an architecture specific
way and the attributes have to be retrieved by calls to
mmu_get_pte_cached_flags() and mmu_get_pte_uncached_flags().
Make this simpler by providing architecture independent flags which can
be directly passed to remap_range()
Also provide a MAP_ARCH_DEFAULT flag and a arch_can_remap() function.
The MAP_ARCH_DEFAULT defaults to whatever caching type the architecture
has as default. the arch_can_remap() function returns true if the
architecture can change the cache attributes, false otherwise. This
allows the memtest code to better find out what it has to do.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6b127d4 commit b792124a7dd30f03b9ad0e06589b5b58ed930d3b
@Sascha Hauer Sascha Hauer authored on 23 Oct 2015
Showing 16 changed files
View
arch/arm/cpu/mmu.c
View
arch/arm/include/asm/mmu.h
View
arch/blackfin/include/asm/mmu.h
View
arch/mips/include/asm/mmu.h
View
arch/nios2/include/asm/mmu.h
View
arch/openrisc/include/asm/mmu.h
View
arch/ppc/cpu-85xx/mmu.c
View
arch/ppc/include/asm/mmu.h
View
arch/sandbox/include/asm/mmu.h
View
arch/x86/include/asm/mmu.h
View
commands/memtest.c
View
common/memtest.c
View
drivers/video/imx-ipu-fb.c
View
drivers/video/omap.c
View
drivers/video/stm.c
View
include/mmu.h 0 → 100644