diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2014-02-27 13:24:57 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-02-27 15:11:53 +0100 |
commit | 3690951fc6d42f3a0903987677d0e592c49dd8db (patch) | |
tree | 7f4e0c36960b591263bd591180631b403d578c27 /arch/arm64/mm/init.c | |
parent | arm64: Replace ZONE_DMA32 with ZONE_DMA (diff) | |
download | linux-3690951fc6d42f3a0903987677d0e592c49dd8db.tar.xz linux-3690951fc6d42f3a0903987677d0e592c49dd8db.zip |
arm64: Use swiotlb late initialisation
Since arm64 does not support ISA, there is no need for early swiotlb
initialisation. This patch switches the DMA mapping code to
swiotlb_tlb_late_init_with_default_size(). A side effect of this is that
GFP_DMA is used for the swiotlb buffer and devices with a 32-bit
coherent mask are correctly supported.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm/init.c')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index a61a4d560d12..88627c450a6c 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -262,8 +262,6 @@ static void __init free_unused_memmap(void) */ void __init mem_init(void) { - arm64_swiotlb_init(); - max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; #ifndef CONFIG_SPARSEMEM_VMEMMAP |