Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] make each arch use mm/Kconfig

For all architectures, this just means that you'll see a "Memory Model"
choice in your architecture menu. For those that implement DISCONTIGMEM,
you may eventually want to make your ARCH_DISCONTIGMEM_ENABLE a "def_bool
y" and make your users select DISCONTIGMEM right out of the new choice
menu. The only disadvantage might be if you have some specific things that
you need in your help option to explain something about DISCONTIGMEM.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Dave Hansen and committed by
Linus Torvalds
3f22ab27 3a9da765

+66 -10
+3 -1
arch/alpha/Kconfig
··· 509 509 depends on SMP 510 510 default "64" 511 511 512 - config DISCONTIGMEM 512 + config ARCH_DISCONTIGMEM_ENABLE 513 513 bool "Discontiguous Memory Support (EXPERIMENTAL)" 514 514 depends on EXPERIMENTAL 515 515 help ··· 517 517 for architectures which are either NUMA (Non-Uniform Memory Access) 518 518 or have huge holes in the physical address space for other reasons. 519 519 See <file:Documentation/vm/numa> for more. 520 + 521 + source "mm/Kconfig" 520 522 521 523 config NUMA 522 524 bool "NUMA Support (EXPERIMENTAL)"
+3 -1
arch/arm/Kconfig
··· 346 346 Say Y here if you are building a kernel for a desktop, embedded 347 347 or real-time system. Say N if you are unsure. 348 348 349 - config DISCONTIGMEM 349 + config ARCH_DISCONTIGMEM_ENABLE 350 350 bool 351 351 default (ARCH_LH7A40X && !LH7A40X_CONTIGMEM) 352 352 help ··· 354 354 for architectures which are either NUMA (Non-Uniform Memory Access) 355 355 or have huge holes in the physical address space for other reasons. 356 356 See <file:Documentation/vm/numa> for more. 357 + 358 + source "mm/Kconfig" 357 359 358 360 config LEDS 359 361 bool "Timer and CPU usage LEDs"
+2
arch/arm26/Kconfig
··· 179 179 time by entering them here. As a minimum, you should specify the 180 180 memory size and the root device (e.g., mem=64M root=/dev/nfs). 181 181 182 + source "mm/Kconfig" 183 + 182 184 endmenu 183 185 184 186 source "drivers/base/Kconfig"
+2
arch/cris/Kconfig
··· 74 74 Say Y here if you are building a kernel for a desktop, embedded 75 75 or real-time system. Say N if you are unsure. 76 76 77 + source mm/Kconfig 78 + 77 79 endmenu 78 80 79 81 menu "Hardware setup"
+2
arch/frv/Kconfig
··· 74 74 with a lot of RAM, this can be wasteful of precious low memory. 75 75 Setting this option will put user-space page tables in high memory. 76 76 77 + source "mm/Kconfig" 78 + 77 79 choice 78 80 prompt "uClinux kernel load address" 79 81 depends on !MMU
+3
arch/h8300/Kconfig.cpu
··· 180 180 config PREEMPT 181 181 bool "Preemptible Kernel" 182 182 default n 183 + 184 + source "mm/Kconfig" 185 + 183 186 endmenu
+3 -1
arch/i386/Kconfig
··· 783 783 comment "NUMA (Summit) requires SMP, 64GB highmem support, ACPI" 784 784 depends on X86_SUMMIT && (!HIGHMEM64G || !ACPI) 785 785 786 - config DISCONTIGMEM 786 + config ARCH_DISCONTIGMEM_ENABLE 787 787 bool 788 788 depends on NUMA 789 789 default y ··· 807 807 bool 808 808 depends on NUMA 809 809 default y 810 + 811 + source "mm/Kconfig" 810 812 811 813 config HIGHPTE 812 814 bool "Allocate 3rd-level pagetables from highmem"
+3 -1
arch/ia64/Kconfig
··· 197 197 bool 198 198 default y if VIRTUAL_MEM_MAP 199 199 200 - config DISCONTIGMEM 200 + config ARCH_DISCONTIGMEM_ENABLE 201 201 bool "Discontiguous memory support" 202 202 depends on (IA64_DIG || IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB) && NUMA && VIRTUAL_MEM_MAP 203 203 default y if (IA64_SGI_SN2 || IA64_GENERIC) && NUMA ··· 299 299 300 300 Say Y here if you are building a kernel for a desktop, embedded 301 301 or real-time system. Say N if you are unsure. 302 + 303 + source "mm/Kconfig" 302 304 303 305 config HAVE_DEC_LOCK 304 306 bool
+3 -1
arch/m32r/Kconfig
··· 172 172 bool 173 173 default y 174 174 175 - config DISCONTIGMEM 175 + config ARCH_DISCONTIGMEM_ENABLE 176 176 bool "Internal RAM Support" 177 177 depends on CHIP_M32700 || CHIP_M32102 || CHIP_VDEC2 || CHIP_OPSP 178 178 default y 179 + 180 + source "mm/Kconfig" 179 181 180 182 config IRAM_START 181 183 hex "Internal memory start address (hex)"
+2
arch/m68k/Kconfig
··· 357 357 is hardwired on. The 53c710 SCSI driver is known to suffer from 358 358 this problem. 359 359 360 + source "mm/Kconfig" 361 + 360 362 endmenu 361 363 362 364 menu "General setup"
+2
arch/m68knommu/Kconfig
··· 532 532 533 533 endchoice 534 534 535 + source "mm/Kconfig" 536 + 535 537 endmenu 536 538 537 539 config ISA_DMA_API
+5 -1
arch/mips/Kconfig
··· 492 492 which allows for more memory. Your system is most probably 493 493 running in M-Mode, so you should say N here. 494 494 495 - config DISCONTIGMEM 495 + config ARCH_DISCONTIGMEM_ENABLE 496 496 bool 497 497 default y if SGI_IP27 498 498 help ··· 500 500 for architectures which are either NUMA (Non-Uniform Memory Access) 501 501 or have huge holes in the physical address space for other reasons. 502 502 See <file:Documentation/vm/numa> for more. 503 + 504 + config ARCH_FLATMEM_DISABLE 505 + def_bool y 506 + depends on ARCH_DISCONTIGMEM_ENABLE 503 507 504 508 config NUMA 505 509 bool "NUMA Support"
+7 -1
arch/parisc/Kconfig
··· 148 148 default y if SMP 149 149 select HOTPLUG 150 150 151 - config DISCONTIGMEM 151 + config ARCH_DISCONTIGMEM_ENABLE 152 152 bool "Discontiguous memory support (EXPERIMENTAL)" 153 153 depends on EXPERIMENTAL 154 154 help ··· 156 156 for architectures which are either NUMA (Non-Uniform Memory Access) 157 157 or have huge holes in the physical address space for other reasons. 158 158 See <file:Documentation/vm/numa> for more. 159 + 160 + config ARCH_FLATMEM_DISABLE 161 + def_bool y 162 + depends on ARCH_DISCONTIGMEM_ENABLE 163 + 164 + source "mm/Kconfig" 159 165 160 166 config PREEMPT 161 167 bool
+2
arch/ppc/Kconfig
··· 905 905 config HIGHMEM 906 906 bool "High memory support" 907 907 908 + source "mm/Kconfig" 909 + 908 910 source "fs/Kconfig.binfmt" 909 911 910 912 config PROC_DEVICETREE
+3 -1
arch/ppc64/Kconfig
··· 198 198 This option enables hardware multithreading on RS64 cpus. 199 199 pSeries systems p620 and p660 have such a cpu type. 200 200 201 - config DISCONTIGMEM 201 + config ARCH_DISCONTIGMEM_ENABLE 202 202 bool "Discontiguous Memory Support" 203 203 depends on SMP && PPC_PSERIES 204 + 205 + source "mm/Kconfig" 204 206 205 207 config NUMA 206 208 bool "NUMA support"
+2
arch/s390/Kconfig
··· 226 226 This allows you to specify the maximum frame size a function may 227 227 have without the compiler complaining about it. 228 228 229 + source "mm/Kconfig" 230 + 229 231 comment "I/O subsystem configuration" 230 232 231 233 config MACHCHK_WARNING
+7 -1
arch/sh/Kconfig
··· 486 486 depends on CPU_SUBTYPE_ST40STB1 || CPU_SUBTYPE_ST40GX1 487 487 default y 488 488 489 - config DISCONTIGMEM 489 + config ARCH_DISCONTIGMEM_ENABLE 490 490 bool 491 491 depends on SH_HP690 492 492 default y ··· 495 495 for architectures which are either NUMA (Non-Uniform Memory Access) 496 496 or have huge holes in the physical address space for other reasons. 497 497 See <file:Documentation/vm/numa> for more. 498 + 499 + config ARCH_FLATMEM_DISABLE 500 + def_bool y 501 + depends on ARCH_DISCONTIGMEM_ENABLE 502 + 503 + source "mm/Kconfig" 498 504 499 505 config ZERO_PAGE_OFFSET 500 506 hex "Zero page offset"
+2
arch/sh64/Kconfig
··· 217 217 bool "Preemptible Kernel (EXPERIMENTAL)" 218 218 depends on EXPERIMENTAL 219 219 220 + source "mm/Kconfig" 221 + 220 222 endmenu 221 223 222 224 menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
+2
arch/sparc/Kconfig
··· 291 291 If you have more than 8 printers, you need to increase the LP_NO 292 292 macro in lp.c and the PARPORT_MAX macro in parport.h. 293 293 294 + source "mm/Kconfig" 295 + 294 296 endmenu 295 297 296 298 source "drivers/base/Kconfig"
+2
arch/sparc64/Kconfig
··· 484 484 485 485 NOTE: This option WILL override the PROM bootargs setting! 486 486 487 + source "mm/Kconfig" 488 + 487 489 endmenu 488 490 489 491 source "drivers/base/Kconfig"
+1
arch/um/Kconfig
··· 74 74 option will shrink the UML binary slightly. 75 75 76 76 source "arch/um/Kconfig_arch" 77 + source "mm/Kconfig" 77 78 78 79 config LD_SCRIPT_STATIC 79 80 bool
+2
arch/v850/Kconfig
··· 218 218 a lot of RAM, and you need to able to allocate very large 219 219 contiguous chunks. If unsure, say N. 220 220 221 + source "mm/Kconfig" 222 + 221 223 endmenu 222 224 223 225
+3 -1
arch/x86_64/Kconfig
··· 265 265 into virtual nodes when booted with "numa=fake=N", where N is the 266 266 number of nodes. This is only useful for debugging. 267 267 268 - config DISCONTIGMEM 268 + config ARCH_DISCONTIGMEM_ENABLE 269 269 bool 270 270 depends on NUMA 271 271 default y ··· 273 273 config NUMA 274 274 bool 275 275 default n 276 + 277 + source "mm/Kconfig" 276 278 277 279 config HAVE_DEC_LOCK 278 280 bool