Commit e1785e85 authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] mm/Kconfig: hide "Memory Model" selection menu

I got some feedback from users who think that the new "Memory Model" menu is a
little invasive.  This patch will hide that menu, except when
CONFIG_EXPERIMENTAL is enabled *or* when an individual architecture wants it.

An individual arch may want to enable it because they've removed their
arch-specific DISCONTIG prompt in favor of the mm/Kconfig one.
Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 074ccf80
config SELECT_MEMORY_MODEL
def_bool y
depends on EXPERIMENTAL || ARCH_SELECT_MEMORY_MODEL
choice choice
prompt "Memory model" prompt "Memory model"
default DISCONTIGMEM if ARCH_DISCONTIGMEM_DEFAULT depends on SELECT_MEMORY_MODEL
default FLATMEM default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT
default FLATMEM_MANUAL
config FLATMEM config FLATMEM_MANUAL
bool "Flat Memory" bool "Flat Memory"
depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE
help help
...@@ -14,7 +19,7 @@ config FLATMEM ...@@ -14,7 +19,7 @@ config FLATMEM
If unsure, choose this option over any other. If unsure, choose this option over any other.
config DISCONTIGMEM config DISCONTIGMEM_MANUAL
bool "Discontigious Memory" bool "Discontigious Memory"
depends on ARCH_DISCONTIGMEM_ENABLE depends on ARCH_DISCONTIGMEM_ENABLE
help help
...@@ -22,6 +27,14 @@ config DISCONTIGMEM ...@@ -22,6 +27,14 @@ config DISCONTIGMEM
endchoice endchoice
config DISCONTIGMEM
def_bool y
depends on (!SELECT_MEMORY_MODEL && ARCH_DISCONTIGMEM_ENABLE) || DISCONTIGMEM_MANUAL
config FLATMEM
def_bool y
depends on !DISCONTIGMEM || FLATMEM_MANUAL
# #
# Both the NUMA code and DISCONTIGMEM use arrays of pg_data_t's # Both the NUMA code and DISCONTIGMEM use arrays of pg_data_t's
# to represent different areas of memory. This variable allows # to represent different areas of memory. This variable allows
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment