summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorChen Wandun <chenwandun@huawei.com>2021-08-10 21:51:05 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-08-26 22:01:22 -0700
commitc24a19674258dcc968a198d8e0d4717c8f27700c (patch)
tree86d05cb85696f1bcb6f5f19d1e71895c8853b0bd /arch/riscv
parenta290f510a178830a01bfc06e66a54bbe4ece5d2a (diff)
downloadlinux-c24a19674258dcc968a198d8e0d4717c8f27700c.tar.bz2
riscv: add support for hugepage migration
Generic arch_hugetlb_migration_supported can provide appropriate support for hugepage migration when enable ARCH_ENABLE_HUGEPAGE_MIGRATION, so enable it for hugepage migration in riscv. Signed-off-by: Chen Wandun <chenwandun@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index e26e255dce3c..78644e29f1fd 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -13,6 +13,7 @@ config 32BIT
config RISCV
def_bool y
select ARCH_CLOCKSOURCE_INIT
+ select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
select ARCH_HAS_BINFMT_FLAT
select ARCH_HAS_DEBUG_VM_PGTABLE
select ARCH_HAS_DEBUG_VIRTUAL if MMU