arm64: mm: only initialize swiotlb when necessary
authorJisheng Zhang <jszhang@marvell.com>
Wed, 8 Jun 2016 07:53:46 +0000 (15:53 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 21 Jun 2016 15:54:53 +0000 (16:54 +0100)
commitb67a8b29df7e6410c605c2759707c96512b15578
tree8917ea75962d34806f07f38d1281b70b1871c1cd
parent83ce0efc12811c1b11f71a8164949ff4f6117054
arm64: mm: only initialize swiotlb when necessary

we only initialize swiotlb when swiotlb_force is true or not all system
memory is DMA-able, this trivial optimization saves us 64MB when
swiotlb is not necessary.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dma-mapping.c
arch/arm64/mm/init.c