riscv: mm: Enable PMD split page table lock for RV64
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 27 Sep 2021 03:03:25 +0000 (11:03 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 03:31:49 +0000 (19:31 -0800)
commit5a7ac592c56c62935fea9b1ce9c24579986083b8
tree4452ae105001b6cdf2b5ae58b3ae86ed63c6041b
parent7cc8c75b54fa6d2c0a802b915feecad3abe6ddd7
riscv: mm: Enable PMD split page table lock for RV64

After commit 1355c31eeb7e ("asm-generic: pgalloc: provide generic
pmd_alloc_one() and pmd_free_one()"), the main part to support
PMD split page table lock is in asm-generic/pgalloc.h.

The only change is add pgtable_pmd_page_ctor() into alloc_pmd_late(),
then we could enable ARCH_ENABLE_SPLIT_PMD_PTLOCK for RV64.

Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/mm/init.c