]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: use appropriate ctors for page tables
authorYu Zhao <yuzhao@google.com>
Tue, 12 Mar 2019 00:57:46 +0000 (18:57 -0600)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 10:21:50 +0000 (11:21 +0100)
commit9cac25f618f552a023b81d5aae8aa46a620808de
treee6ec9f20d197b0c026b3ff76576d59d2ac5b69e7
parent02648ed40375b21afb3dbc8507c9db0d2b953e55
arm64: mm: use appropriate ctors for page tables

For pte page, use pgtable_page_ctor(); for pmd page, use
pgtable_pmd_page_ctor(); and for the rest (pud, p4d and pgd),
don't use any.

For now, we don't select ARCH_ENABLE_SPLIT_PMD_PTLOCK and
pgtable_pmd_page_ctor() is a nop. When we do in patch 3, we
make sure pmd is not folded so we won't mistakenly call
pgtable_pmd_page_ctor() on pud or p4d.

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