Commit f3f1f3b9 authored by Hongchen Zhang's avatar Hongchen Zhang
Browse files

LoongArch: enable hugetlbfs support

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



--------------------------------

Signed-off-by: default avatarHongchen Zhang <zhanghongchen@loongson.cn>
Change-Id: I4631175847064093af8f143d0c46b267a82de069
parent f5069ef5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -497,6 +497,9 @@ config ARCH_SPARSEMEM_ENABLE
	  or have huge holes in the physical address space for other reasons.
	  See <file:Documentation/vm/numa.rst> for more.

config SYS_SUPPORTS_HUGETLBFS
        def_bool y

config ARCH_ENABLE_THP_MIGRATION
	def_bool y
	depends on TRANSPARENT_HUGEPAGE
+1 −0
Original line number Diff line number Diff line
@@ -733,6 +733,7 @@ CONFIG_FAT_DEFAULT_IOCHARSET="gb2312"
CONFIG_PROC_KCORE=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_HUGETLBFS=y
CONFIG_CONFIGFS_FS=y
CONFIG_HFS_FS=m
CONFIG_HFSPLUS_FS=m
+2 −2
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
#include <asm/tlb.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)
{
	pgd_t *pgd;