[1/2] x86/Kconfig: make SPARSEMEM default for 32-bit
diff mbox series

Message ID 1556112252-9339-2-git-send-email-rppt@linux.ibm.com
State Accepted
Commit 6ad57f7f2cbf65daced27f023cc99360742a24b9
Headers show
Series
  • x86/Kconfig: deprecate DISCONTIGMEM support for 32-bit
Related show

Commit Message

Mike Rapoport April 24, 2019, 1:24 p.m. UTC
Sparsemem has been a default memory model for x86-64 for over a decade
since the commit b263295dbffd ("x86: 64-bit, make sparsemem vmemmap the
only memory model").

Make it the default for 32-bit NUMA systems (if there any left) as well.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
---
 arch/x86/Kconfig | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Mel Gorman April 24, 2019, 2:19 p.m. UTC | #1
On Wed, Apr 24, 2019 at 04:24:11PM +0300, Mike Rapoport wrote:
> Sparsemem has been a default memory model for x86-64 for over a decade
> since the commit b263295dbffd ("x86: 64-bit, make sparsemem vmemmap the
> only memory model").
> 
> Make it the default for 32-bit NUMA systems (if there any left) as well.
> 
> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>

Acked-by: Mel Gorman <mgorman@techsingularity.net>

Patch
diff mbox series

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 62fc3fd..5662a3e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1609,10 +1609,6 @@  config ARCH_DISCONTIGMEM_ENABLE
 	def_bool y
 	depends on NUMA && X86_32
 
-config ARCH_DISCONTIGMEM_DEFAULT
-	def_bool y
-	depends on NUMA && X86_32
-
 config ARCH_SPARSEMEM_ENABLE
 	def_bool y
 	depends on X86_64 || NUMA || X86_32 || X86_32_NON_STANDARD
@@ -1620,8 +1616,7 @@  config ARCH_SPARSEMEM_ENABLE
 	select SPARSEMEM_VMEMMAP_ENABLE if X86_64
 
 config ARCH_SPARSEMEM_DEFAULT
-	def_bool y
-	depends on X86_64
+	def_bool X86_64 || (NUMA && X86_32)
 
 config ARCH_SELECT_MEMORY_MODEL
 	def_bool y