]> bbs.cooldavid.org Git - net-next-2.6.git/blame - mm/Kconfig
[PATCH] mm/Kconfig: hide "Memory Model" selection menu
[net-next-2.6.git] / mm / Kconfig
CommitLineData
e1785e85
DH
1config SELECT_MEMORY_MODEL
2 def_bool y
3 depends on EXPERIMENTAL || ARCH_SELECT_MEMORY_MODEL
4
3a9da765
DH
5choice
6 prompt "Memory model"
e1785e85
DH
7 depends on SELECT_MEMORY_MODEL
8 default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT
9 default FLATMEM_MANUAL
3a9da765 10
e1785e85 11config FLATMEM_MANUAL
3a9da765
DH
12 bool "Flat Memory"
13 depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE
14 help
15 This option allows you to change some of the ways that
16 Linux manages its memory internally. Most users will
17 only have one option here: FLATMEM. This is normal
18 and a correct option.
19
20 If unsure, choose this option over any other.
21
e1785e85 22config DISCONTIGMEM_MANUAL
3a9da765
DH
23 bool "Discontigious Memory"
24 depends on ARCH_DISCONTIGMEM_ENABLE
25 help
26 If unsure, choose "Flat Memory" over this option.
27
28endchoice
29
e1785e85
DH
30config DISCONTIGMEM
31 def_bool y
32 depends on (!SELECT_MEMORY_MODEL && ARCH_DISCONTIGMEM_ENABLE) || DISCONTIGMEM_MANUAL
33
34config FLATMEM
35 def_bool y
36 depends on !DISCONTIGMEM || FLATMEM_MANUAL
37
93b7504e
DH
38#
39# Both the NUMA code and DISCONTIGMEM use arrays of pg_data_t's
40# to represent different areas of memory. This variable allows
41# those dependencies to exist individually.
42#
43config NEED_MULTIPLE_NODES
44 def_bool y
45 depends on DISCONTIGMEM || NUMA