arm64/mm: enable HugeTLB migration
authorAnshuman Khandual <[email protected]>
Tue, 5 Mar 2019 23:43:55 +0000 (15:43 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Mar 2019 05:07:15 +0000 (21:07 -0800)
Let arm64 subscribe to generic HugeTLB page migration framework.  Right
now this only works on the following PMD and PUD level HugeTLB page
sizes with various kernel base page size combinations.

         CONT PTE    PMD    CONT PMD    PUD
         --------    ---    --------    ---
  4K:         NA     2M         NA      1G
  16K:        NA    32M         NA
  64K:        NA   512M         NA

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Anshuman Khandual <[email protected]>
Reviewed-by: Naoya Horiguchi <[email protected]>
Reviewed-by: Steve Capper <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/arm64/Kconfig

index a4168d36612772a7668ee0a7d9e83afef40a729d..cfbf307d6dc4e2e8f1cf7a33dfb552452fb55360 100644 (file)
@@ -1467,6 +1467,10 @@ config SYSVIPC_COMPAT
        def_bool y
        depends on COMPAT && SYSVIPC
 
+config ARCH_ENABLE_HUGEPAGE_MIGRATION
+       def_bool y
+       depends on HUGETLB_PAGE && MIGRATION
+
 menu "Power management options"
 
 source "kernel/power/Kconfig"