summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/mmu.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-06-20 13:57:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-30 12:46:24 +0200
commit76df95bde1ec7d3f6371edcd128d4fca1cb7d2a9 (patch)
tree6730dbaefd35087e385492caf0b99a941eb4d791 /arch/arm/cpu/mmu.c
parenta6e358b2f5b219fda18a7bc9348cb969043c19d5 (diff)
downloadbarebox-76df95bde1ec7d3f6371edcd128d4fca1cb7d2a9.tar.gz
barebox-76df95bde1ec7d3f6371edcd128d4fca1cb7d2a9.tar.xz
ARM mmu: don't use CONFIG_MMU to disable mmu code, there are static inline versions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/mmu.c')
-rw-r--r--arch/arm/cpu/mmu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index c19f9311cd..55b07a46d1 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -299,11 +299,9 @@ void *dma_alloc_coherent(size_t size)
size = PAGE_ALIGN(size);
ret = xmemalign(4096, size);
-#ifdef CONFIG_MMU
dma_inv_range((unsigned long)ret, (unsigned long)ret + size);
remap_range(ret, size, PTE_FLAGS_UNCACHED);
-#endif
return ret;
}
@@ -320,9 +318,7 @@ void *phys_to_virt(unsigned long phys)
void dma_free_coherent(void *mem, size_t size)
{
-#ifdef CONFIG_MMU
remap_range(mem, size, PTE_FLAGS_CACHED);
-#endif
free(mem);
}