Kconfig 1.2 KB
Newer Older
1 2 3 4
config SELECT_MEMORY_MODEL
	def_bool y
	depends on EXPERIMENTAL || ARCH_SELECT_MEMORY_MODEL

5 6
choice
	prompt "Memory model"
7 8 9
	depends on SELECT_MEMORY_MODEL
	default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT
	default FLATMEM_MANUAL
10

11
config FLATMEM_MANUAL
12 13 14 15 16 17 18 19 20 21
	bool "Flat Memory"
	depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE
	help
	  This option allows you to change some of the ways that
	  Linux manages its memory internally.  Most users will
	  only have one option here: FLATMEM.  This is normal
	  and a correct option.

	  If unsure, choose this option over any other.

22
config DISCONTIGMEM_MANUAL
23 24 25 26 27 28 29
	bool "Discontigious Memory"
	depends on ARCH_DISCONTIGMEM_ENABLE
	help
	  If unsure, choose "Flat Memory" over this option.

endchoice

30 31 32 33 34 35 36 37
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

38 39 40 41 42 43 44 45
#
# Both the NUMA code and DISCONTIGMEM use arrays of pg_data_t's
# to represent different areas of memory.  This variable allows
# those dependencies to exist individually.
#
config NEED_MULTIPLE_NODES
	def_bool y
	depends on DISCONTIGMEM || NUMA