From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx118.postini.com [74.125.245.118]) by kanga.kvack.org (Postfix) with SMTP id B9E346B0183 for ; Thu, 13 Sep 2012 17:40:27 -0400 (EDT) Date: Thu, 13 Sep 2012 14:40:25 -0700 From: Andrew Morton Subject: Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE Message-Id: <20120913144025.b1760af4.akpm@linux-foundation.org> In-Reply-To: <20120914072732.637f4225c32565468f468305@canb.auug.org.au> References: <1347382036-18455-1-git-send-email-will.deacon@arm.com> <1347382036-18455-4-git-send-email-will.deacon@arm.com> <20120913120514.135d2c38.akpm@linux-foundation.org> <20120914072732.637f4225c32565468f468305@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Stephen Rothwell Cc: Will Deacon , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mhocko@suse.cz, Steve Capper , Gerald Schaefer On Fri, 14 Sep 2012 07:27:32 +1000 Stephen Rothwell wrote: > Hi Andrew, > > On Thu, 13 Sep 2012 12:05:14 -0700 Andrew Morton wrote: > > > > diff -puN arch/x86/Kconfig~mm-introduce-have_arch_transparent_hugepage arch/x86/Kconfig > > --- a/arch/x86/Kconfig~mm-introduce-have_arch_transparent_hugepage > > +++ a/arch/x86/Kconfig > > @@ -83,7 +83,6 @@ config X86 > > select IRQ_FORCED_THREADING > > select USE_GENERIC_SMP_HELPERS if SMP > > select HAVE_BPF_JIT if X86_64 > > - select HAVE_ARCH_TRANSPARENT_HUGEPAGE > > Why not > select HAVE_ARCH_TRANSPARENT_HUGEPAGE if MMU > Well, this is in arch/x86/Kconfig, where MMU is known to always be set. Yes, I think Gerald's patch will suffice: --- a/arch/Kconfig~thp-x86-introduce-have_arch_transparent_hugepage +++ a/arch/Kconfig @@ -326,4 +326,7 @@ config HAVE_RCU_USER_QS are already protected inside rcu_irq_enter/rcu_irq_exit() but preemption or signal handling on irq exit still need to be protected. +config HAVE_ARCH_TRANSPARENT_HUGEPAGE + bool + source "kernel/gcov/Kconfig" --- a/arch/x86/Kconfig~thp-x86-introduce-have_arch_transparent_hugepage +++ a/arch/x86/Kconfig @@ -83,6 +83,7 @@ config X86 select IRQ_FORCED_THREADING select USE_GENERIC_SMP_HELPERS if SMP select HAVE_BPF_JIT if X86_64 + select HAVE_ARCH_TRANSPARENT_HUGEPAGE select CLKEVT_I8253 select ARCH_HAVE_NMI_SAFE_CMPXCHG select GENERIC_IOMAP --- a/mm/Kconfig~thp-x86-introduce-have_arch_transparent_hugepage +++ a/mm/Kconfig @@ -318,7 +318,7 @@ config NOMMU_INITIAL_TRIM_EXCESS config TRANSPARENT_HUGEPAGE bool "Transparent Hugepage Support" - depends on X86 && MMU + depends on HAVE_ARCH_TRANSPARENT_HUGEPAGE select COMPACTION help Transparent Hugepages allows the kernel to use huge pages and _ -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org