]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d89c329aa931b616d728ea70cb2e4ba27bc9422
tree8917ea75962d34806f07f38d1281b70b1871c1cd
parent9409346bb6dad81f5b32256a022dd62ed07c994b
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