ARM: mmu: Share code for dma_alloc_coherent()
Both ARM and ARM64 implement almost identical algorithms in
dma_alloc_coherent(). Move the code to mmu-common.c, so it can be
shared.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 581a73d commit 82ad5896fbbb51593e94b9b891509683acf94341
@Andrey Smirnov Andrey Smirnov authored on 17 Jan 2019
Sascha Hauer committed on 21 Jan 2019
Showing 6 changed files
View
arch/arm/cpu/mmu-common.c
View
arch/arm/cpu/mmu-common.h 0 → 100644
View
arch/arm/cpu/mmu.c
View
arch/arm/cpu/mmu.h
View
arch/arm/cpu/mmu_64.c
View
arch/arm/cpu/mmu_64.h