]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
arm64: mm: don't call page table ctors for init_mm
authorYu Zhao <yuzhao@google.com>
Tue, 12 Mar 2019 00:57:47 +0000 (18:57 -0600)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 10:21:50 +0000 (11:21 +0100)
commit369aaab845a65b90ceac2801edd577fae442476c
tree996c9e95de8ad57c083615f9ef546e37a35f93fe
parent90292aca9854a2cbd904127337d6fea30f46290c
arm64: mm: don't call page table ctors for init_mm

init_mm doesn't require page table lock to be initialized at
any level. Add a separate page table allocator for it, and the
new one skips page table ctors.

The ctors allocate memory when ALLOC_SPLIT_PTLOCKS is set. Not
calling them avoids memory leak in case we call pte_free_kernel()
on init_mm.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/mmu.c