9
0
Fork 0

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>
This commit is contained in:
Marc Kleine-Budde 2012-06-20 13:57:30 +02:00 committed by Sascha Hauer
parent a6e358b2f5
commit 76df95bde1
1 changed files with 0 additions and 4 deletions

View File

@ -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);
}