提交 fee37ed3 编写于 作者: H Hongchen Zhang 提交者: openeuler-sync-bot

LoongArch: enable hugetlbfs support

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I6BWFP

--------------------------------
Signed-off-by: NHongchen Zhang <zhanghongchen@loongson.cn>
Change-Id: I4631175847064093af8f143d0c46b267a82de069
(cherry picked from commit f3f1f3b9)
上级 c40348fc
...@@ -497,6 +497,9 @@ config ARCH_SPARSEMEM_ENABLE ...@@ -497,6 +497,9 @@ config ARCH_SPARSEMEM_ENABLE
or have huge holes in the physical address space for other reasons. or have huge holes in the physical address space for other reasons.
See <file:Documentation/vm/numa.rst> for more. See <file:Documentation/vm/numa.rst> for more.
config SYS_SUPPORTS_HUGETLBFS
def_bool y
config ARCH_ENABLE_THP_MIGRATION config ARCH_ENABLE_THP_MIGRATION
def_bool y def_bool y
depends on TRANSPARENT_HUGEPAGE depends on TRANSPARENT_HUGEPAGE
......
...@@ -733,6 +733,7 @@ CONFIG_FAT_DEFAULT_IOCHARSET="gb2312" ...@@ -733,6 +733,7 @@ CONFIG_FAT_DEFAULT_IOCHARSET="gb2312"
CONFIG_PROC_KCORE=y CONFIG_PROC_KCORE=y
CONFIG_TMPFS=y CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y CONFIG_TMPFS_POSIX_ACL=y
CONFIG_HUGETLBFS=y
CONFIG_CONFIGFS_FS=y CONFIG_CONFIGFS_FS=y
CONFIG_HFS_FS=m CONFIG_HFS_FS=m
CONFIG_HFSPLUS_FS=m CONFIG_HFSPLUS_FS=m
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
#include <asm/tlb.h> #include <asm/tlb.h>
#include <asm/tlbflush.h> #include <asm/tlbflush.h>
pte_t *huge_pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma, pte_t *huge_pte_alloc(struct mm_struct *mm,
unsigned long addr, unsigned long sz) unsigned long addr, unsigned long sz)
{ {
pgd_t *pgd; pgd_t *pgd;
p4d_t *p4d; p4d_t *p4d;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册