]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25f2af2e7a251651515ffd43628221e78f432faf
tree4452ae105001b6cdf2b5ae58b3ae86ed63c6041b
parent5c672fe97faf7d04bf655052ff944a5a9223f3dd
riscv: mm: Enable PMD split page table lock for RV64

After commit 6e5d1e8eb043 ("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