On Mon, Mar 13, 2017 at 11:45:00AM -0400, Zi Yan wrote:
> From: Naoya Horiguchi <[email protected]>
> 
> Introduces CONFIG_ARCH_ENABLE_THP_MIGRATION to limit thp migration
> functionality to x86_64, which should be safer at the first step.
> 
> Signed-off-by: Naoya Horiguchi <[email protected]>
> ---
> v1 -> v2:
> - fixed config name in subject and patch description
> ---
>  arch/x86/Kconfig        |  4 ++++
>  include/linux/huge_mm.h | 10 ++++++++++
>  mm/Kconfig              |  3 +++
>  3 files changed, 17 insertions(+)
> 
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 69188841717a..a24bc11c7aed 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -2276,6 +2276,10 @@ config ARCH_ENABLE_HUGEPAGE_MIGRATION
>       def_bool y
>       depends on X86_64 && HUGETLB_PAGE && MIGRATION
>  
> +config ARCH_ENABLE_THP_MIGRATION
> +     def_bool y
> +     depends on X86_64 && TRANSPARENT_HUGEPAGE && MIGRATION
> +

TRANSPARENT_HUGEPAGE implies MIGRATION due to COMPACTION.


-- 
 Kirill A. Shutemov

Reply via email to