diff options
author | Bob Picco <bob.picco@hp.com> | 2005-10-04 15:13:37 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-04 16:19:30 -0400 |
commit | da9577c531f17f744f3eab40f700e07933d26361 (patch) | |
tree | 388e426b9d387b5297b44a519d60bc9f093935d6 /arch | |
parent | dd7205ed0f022a2a5e60eb7404e6c9f49d2301c3 (diff) |
[PATCH] V5 ia64 SPARSEMEM - Kconfig and Makefile
The patch modifies the Kconfig file to introduce the new memory model
options and other related SPARSEMEM changes. There is also a minor change
in the Makefile.
Signed-off-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/Kconfig | 94 | ||||
-rw-r--r-- | arch/ia64/mm/Makefile | 5 |
2 files changed, 58 insertions, 41 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 945c15a0722b..a86236d6ba5d 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -63,8 +63,6 @@ config IA64_GENERIC | |||
63 | select ACPI | 63 | select ACPI |
64 | select NUMA | 64 | select NUMA |
65 | select ACPI_NUMA | 65 | select ACPI_NUMA |
66 | select VIRTUAL_MEM_MAP | ||
67 | select DISCONTIGMEM | ||
68 | help | 66 | help |
69 | This selects the system type of your hardware. A "generic" kernel | 67 | This selects the system type of your hardware. A "generic" kernel |
70 | will run on any supported IA-64 system. However, if you configure | 68 | will run on any supported IA-64 system. However, if you configure |
@@ -176,40 +174,6 @@ config IA64_L1_CACHE_SHIFT | |||
176 | default "6" if ITANIUM | 174 | default "6" if ITANIUM |
177 | 175 | ||
178 | # align cache-sensitive data to 64 bytes | 176 | # align cache-sensitive data to 64 bytes |
179 | config NUMA | ||
180 | bool "NUMA support" | ||
181 | depends on !IA64_HP_SIM | ||
182 | default y if IA64_SGI_SN2 | ||
183 | select ACPI_NUMA | ||
184 | help | ||
185 | Say Y to compile the kernel to support NUMA (Non-Uniform Memory | ||
186 | Access). This option is for configuring high-end multiprocessor | ||
187 | server systems. If in doubt, say N. | ||
188 | |||
189 | config VIRTUAL_MEM_MAP | ||
190 | bool "Virtual mem map" | ||
191 | default y if !IA64_HP_SIM | ||
192 | help | ||
193 | Say Y to compile the kernel with support for a virtual mem map. | ||
194 | This code also only takes effect if a memory hole of greater than | ||
195 | 1 Gb is found during boot. You must turn this option on if you | ||
196 | require the DISCONTIGMEM option for your machine. If you are | ||
197 | unsure, say Y. | ||
198 | |||
199 | config HOLES_IN_ZONE | ||
200 | bool | ||
201 | default y if VIRTUAL_MEM_MAP | ||
202 | |||
203 | config ARCH_DISCONTIGMEM_ENABLE | ||
204 | bool "Discontiguous memory support" | ||
205 | depends on (IA64_DIG || IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB) && NUMA && VIRTUAL_MEM_MAP | ||
206 | default y if (IA64_SGI_SN2 || IA64_GENERIC) && NUMA | ||
207 | help | ||
208 | Say Y to support efficient handling of discontiguous physical memory, | ||
209 | for architectures which are either NUMA (Non-Uniform Memory Access) | ||
210 | or have huge holes in the physical address space for other reasons. | ||
211 | See <file:Documentation/vm/numa> for more. | ||
212 | |||
213 | config IA64_CYCLONE | 177 | config IA64_CYCLONE |
214 | bool "Cyclone (EXA) Time Source support" | 178 | bool "Cyclone (EXA) Time Source support" |
215 | help | 179 | help |
@@ -232,8 +196,10 @@ config IA64_SGI_SN_XP | |||
232 | based on a network adapter and DMA messaging. | 196 | based on a network adapter and DMA messaging. |
233 | 197 | ||
234 | config FORCE_MAX_ZONEORDER | 198 | config FORCE_MAX_ZONEORDER |
235 | int | 199 | int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE |
236 | default "18" | 200 | range 11 17 if !HUGETLB_PAGE |
201 | default "17" if HUGETLB_PAGE | ||
202 | default "11" | ||
237 | 203 | ||
238 | config SMP | 204 | config SMP |
239 | bool "Symmetric multi-processing support" | 205 | bool "Symmetric multi-processing support" |
@@ -298,6 +264,58 @@ config PREEMPT | |||
298 | 264 | ||
299 | source "mm/Kconfig" | 265 | source "mm/Kconfig" |
300 | 266 | ||
267 | config ARCH_SELECT_MEMORY_MODEL | ||
268 | def_bool y | ||
269 | |||
270 | config ARCH_DISCONTIGMEM_ENABLE | ||
271 | def_bool y | ||
272 | help | ||
273 | Say Y to support efficient handling of discontiguous physical memory, | ||
274 | for architectures which are either NUMA (Non-Uniform Memory Access) | ||
275 | or have huge holes in the physical address space for other reasons. | ||
276 | See <file:Documentation/vm/numa> for more. | ||
277 | |||
278 | config ARCH_FLATMEM_ENABLE | ||
279 | def_bool y | ||
280 | |||
281 | config ARCH_SPARSEMEM_ENABLE | ||
282 | def_bool y | ||
283 | depends on ARCH_DISCONTIGMEM_ENABLE | ||
284 | |||
285 | config ARCH_DISCONTIGMEM_DEFAULT | ||
286 | def_bool y if (IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB) | ||
287 | depends on ARCH_DISCONTIGMEM_ENABLE | ||
288 | |||
289 | config NUMA | ||
290 | bool "NUMA support" | ||
291 | depends on !IA64_HP_SIM && !FLATMEM | ||
292 | default y if IA64_SGI_SN2 | ||
293 | help | ||
294 | Say Y to compile the kernel to support NUMA (Non-Uniform Memory | ||
295 | Access). This option is for configuring high-end multiprocessor | ||
296 | server systems. If in doubt, say N. | ||
297 | |||
298 | # VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent. | ||
299 | # VIRTUAL_MEM_MAP has been retained for historical reasons. | ||
300 | config VIRTUAL_MEM_MAP | ||
301 | bool "Virtual mem map" | ||
302 | depends on !SPARSEMEM | ||
303 | default y if !IA64_HP_SIM | ||
304 | help | ||
305 | Say Y to compile the kernel with support for a virtual mem map. | ||
306 | This code also only takes effect if a memory hole of greater than | ||
307 | 1 Gb is found during boot. You must turn this option on if you | ||
308 | require the DISCONTIGMEM option for your machine. If you are | ||
309 | unsure, say Y. | ||
310 | |||
311 | config HOLES_IN_ZONE | ||
312 | bool | ||
313 | default y if VIRTUAL_MEM_MAP | ||
314 | |||
315 | config HAVE_ARCH_EARLY_PFN_TO_NID | ||
316 | def_bool y | ||
317 | depends on NEED_MULTIPLE_NODES | ||
318 | |||
301 | config IA32_SUPPORT | 319 | config IA32_SUPPORT |
302 | bool "Support for Linux/x86 binaries" | 320 | bool "Support for Linux/x86 binaries" |
303 | help | 321 | help |
diff --git a/arch/ia64/mm/Makefile b/arch/ia64/mm/Makefile index 7078f67887ec..d78d20f0a0f0 100644 --- a/arch/ia64/mm/Makefile +++ b/arch/ia64/mm/Makefile | |||
@@ -7,6 +7,5 @@ obj-y := init.o fault.o tlb.o extable.o | |||
7 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o | 7 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o |
8 | obj-$(CONFIG_NUMA) += numa.o | 8 | obj-$(CONFIG_NUMA) += numa.o |
9 | obj-$(CONFIG_DISCONTIGMEM) += discontig.o | 9 | obj-$(CONFIG_DISCONTIGMEM) += discontig.o |
10 | ifndef CONFIG_DISCONTIGMEM | 10 | obj-$(CONFIG_SPARSEMEM) += discontig.o |
11 | obj-y += contig.o | 11 | obj-$(CONFIG_FLATMEM) += contig.o |
12 | endif | ||