diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-01-05 06:47:15 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-01-05 06:47:23 -0500 |
commit | 6f9a3c330652b0fdb65d89e94977a8e79fe730e7 (patch) | |
tree | bdf071266d5b2d423ee7d4adb8cf25621d598ed9 /arch/s390/Kconfig | |
parent | 53ec24b1e6c7118a127cf029a1519a2ce55268ec (diff) |
[S390] cleanup s390 Kconfig
Make use of def_bool and def_tristate where possible and add sensible
defaults to the config symbols where applicable. This shortens the
defconfig file by another ~40 lines.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Kconfig')
-rw-r--r-- | arch/s390/Kconfig | 129 |
1 files changed, 67 insertions, 62 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index e0b98e71ff47..3243f7a52c72 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -1,13 +1,8 @@ | |||
1 | config SCHED_MC | ||
2 | def_bool y | ||
3 | depends on SMP | ||
4 | |||
5 | config MMU | 1 | config MMU |
6 | def_bool y | 2 | def_bool y |
7 | 3 | ||
8 | config ZONE_DMA | 4 | config ZONE_DMA |
9 | def_bool y | 5 | def_bool y if 64BIT |
10 | depends on 64BIT | ||
11 | 6 | ||
12 | config LOCKDEP_SUPPORT | 7 | config LOCKDEP_SUPPORT |
13 | def_bool y | 8 | def_bool y |
@@ -25,12 +20,10 @@ config RWSEM_XCHGADD_ALGORITHM | |||
25 | def_bool y | 20 | def_bool y |
26 | 21 | ||
27 | config ARCH_HAS_ILOG2_U32 | 22 | config ARCH_HAS_ILOG2_U32 |
28 | bool | 23 | def_bool n |
29 | default n | ||
30 | 24 | ||
31 | config ARCH_HAS_ILOG2_U64 | 25 | config ARCH_HAS_ILOG2_U64 |
32 | bool | 26 | def_bool n |
33 | default n | ||
34 | 27 | ||
35 | config GENERIC_HWEIGHT | 28 | config GENERIC_HWEIGHT |
36 | def_bool y | 29 | def_bool y |
@@ -42,9 +35,7 @@ config GENERIC_CLOCKEVENTS | |||
42 | def_bool y | 35 | def_bool y |
43 | 36 | ||
44 | config GENERIC_BUG | 37 | config GENERIC_BUG |
45 | bool | 38 | def_bool y if BUG |
46 | depends on BUG | ||
47 | default y | ||
48 | 39 | ||
49 | config GENERIC_BUG_RELATIVE_POINTERS | 40 | config GENERIC_BUG_RELATIVE_POINTERS |
50 | def_bool y | 41 | def_bool y |
@@ -59,13 +50,10 @@ config ARCH_DMA_ADDR_T_64BIT | |||
59 | def_bool 64BIT | 50 | def_bool 64BIT |
60 | 51 | ||
61 | config GENERIC_LOCKBREAK | 52 | config GENERIC_LOCKBREAK |
62 | bool | 53 | def_bool y if SMP && PREEMPT |
63 | default y | ||
64 | depends on SMP && PREEMPT | ||
65 | 54 | ||
66 | config PGSTE | 55 | config PGSTE |
67 | bool | 56 | def_bool y if KVM |
68 | default y if KVM | ||
69 | 57 | ||
70 | config VIRT_CPU_ACCOUNTING | 58 | config VIRT_CPU_ACCOUNTING |
71 | def_bool y | 59 | def_bool y |
@@ -129,8 +117,7 @@ config S390 | |||
129 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE | 117 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE |
130 | 118 | ||
131 | config SCHED_OMIT_FRAME_POINTER | 119 | config SCHED_OMIT_FRAME_POINTER |
132 | bool | 120 | def_bool y |
133 | default y | ||
134 | 121 | ||
135 | source "init/Kconfig" | 122 | source "init/Kconfig" |
136 | 123 | ||
@@ -143,20 +130,21 @@ comment "Processor type and features" | |||
143 | source "kernel/time/Kconfig" | 130 | source "kernel/time/Kconfig" |
144 | 131 | ||
145 | config 64BIT | 132 | config 64BIT |
146 | bool "64 bit kernel" | 133 | def_bool y |
134 | prompt "64 bit kernel" | ||
147 | help | 135 | help |
148 | Select this option if you have an IBM z/Architecture machine | 136 | Select this option if you have an IBM z/Architecture machine |
149 | and want to use the 64 bit addressing mode. | 137 | and want to use the 64 bit addressing mode. |
150 | 138 | ||
151 | config 32BIT | 139 | config 32BIT |
152 | bool | 140 | def_bool y if !64BIT |
153 | default y if !64BIT | ||
154 | 141 | ||
155 | config KTIME_SCALAR | 142 | config KTIME_SCALAR |
156 | def_bool 32BIT | 143 | def_bool 32BIT |
157 | 144 | ||
158 | config SMP | 145 | config SMP |
159 | bool "Symmetric multi-processing support" | 146 | def_bool y |
147 | prompt "Symmetric multi-processing support" | ||
160 | ---help--- | 148 | ---help--- |
161 | This enables support for systems with more than one CPU. If you have | 149 | This enables support for systems with more than one CPU. If you have |
162 | a system with only one CPU, like most personal computers, say N. If | 150 | a system with only one CPU, like most personal computers, say N. If |
@@ -188,10 +176,10 @@ config NR_CPUS | |||
188 | approximately sixteen kilobytes to the kernel image. | 176 | approximately sixteen kilobytes to the kernel image. |
189 | 177 | ||
190 | config HOTPLUG_CPU | 178 | config HOTPLUG_CPU |
191 | bool "Support for hot-pluggable CPUs" | 179 | def_bool y |
180 | prompt "Support for hot-pluggable CPUs" | ||
192 | depends on SMP | 181 | depends on SMP |
193 | select HOTPLUG | 182 | select HOTPLUG |
194 | default n | ||
195 | help | 183 | help |
196 | Say Y here to be able to turn CPUs off and on. CPUs | 184 | Say Y here to be able to turn CPUs off and on. CPUs |
197 | can be controlled through /sys/devices/system/cpu/cpu#. | 185 | can be controlled through /sys/devices/system/cpu/cpu#. |
@@ -207,14 +195,16 @@ config SCHED_MC | |||
207 | increased overhead in some places. | 195 | increased overhead in some places. |
208 | 196 | ||
209 | config SCHED_BOOK | 197 | config SCHED_BOOK |
210 | bool "Book scheduler support" | 198 | def_bool y |
199 | prompt "Book scheduler support" | ||
211 | depends on SMP && SCHED_MC | 200 | depends on SMP && SCHED_MC |
212 | help | 201 | help |
213 | Book scheduler support improves the CPU scheduler's decision making | 202 | Book scheduler support improves the CPU scheduler's decision making |
214 | when dealing with machines that have several books. | 203 | when dealing with machines that have several books. |
215 | 204 | ||
216 | config MATHEMU | 205 | config MATHEMU |
217 | bool "IEEE FPU emulation" | 206 | def_bool y |
207 | prompt "IEEE FPU emulation" | ||
218 | depends on MARCH_G5 | 208 | depends on MARCH_G5 |
219 | help | 209 | help |
220 | This option is required for IEEE compliant floating point arithmetic | 210 | This option is required for IEEE compliant floating point arithmetic |
@@ -222,7 +212,8 @@ config MATHEMU | |||
222 | need this. | 212 | need this. |
223 | 213 | ||
224 | config COMPAT | 214 | config COMPAT |
225 | bool "Kernel support for 31 bit emulation" | 215 | def_bool y |
216 | prompt "Kernel support for 31 bit emulation" | ||
226 | depends on 64BIT | 217 | depends on 64BIT |
227 | select COMPAT_BINFMT_ELF | 218 | select COMPAT_BINFMT_ELF |
228 | help | 219 | help |
@@ -232,16 +223,14 @@ config COMPAT | |||
232 | executing 31 bit applications. It is safe to say "Y". | 223 | executing 31 bit applications. It is safe to say "Y". |
233 | 224 | ||
234 | config SYSVIPC_COMPAT | 225 | config SYSVIPC_COMPAT |
235 | bool | 226 | def_bool y if COMPAT && SYSVIPC |
236 | depends on COMPAT && SYSVIPC | ||
237 | default y | ||
238 | 227 | ||
239 | config AUDIT_ARCH | 228 | config AUDIT_ARCH |
240 | bool | 229 | def_bool y |
241 | default y | ||
242 | 230 | ||
243 | config S390_EXEC_PROTECT | 231 | config S390_EXEC_PROTECT |
244 | bool "Data execute protection" | 232 | def_bool y |
233 | prompt "Data execute protection" | ||
245 | help | 234 | help |
246 | This option allows to enable a buffer overflow protection for user | 235 | This option allows to enable a buffer overflow protection for user |
247 | space programs and it also selects the addressing mode option above. | 236 | space programs and it also selects the addressing mode option above. |
@@ -301,7 +290,8 @@ config MARCH_Z196 | |||
301 | endchoice | 290 | endchoice |
302 | 291 | ||
303 | config PACK_STACK | 292 | config PACK_STACK |
304 | bool "Pack kernel stack" | 293 | def_bool y |
294 | prompt "Pack kernel stack" | ||
305 | help | 295 | help |
306 | This option enables the compiler option -mkernel-backchain if it | 296 | This option enables the compiler option -mkernel-backchain if it |
307 | is available. If the option is available the compiler supports | 297 | is available. If the option is available the compiler supports |
@@ -314,7 +304,8 @@ config PACK_STACK | |||
314 | Say Y if you are unsure. | 304 | Say Y if you are unsure. |
315 | 305 | ||
316 | config SMALL_STACK | 306 | config SMALL_STACK |
317 | bool "Use 8kb for kernel stack instead of 16kb" | 307 | def_bool n |
308 | prompt "Use 8kb for kernel stack instead of 16kb" | ||
318 | depends on PACK_STACK && 64BIT && !LOCKDEP | 309 | depends on PACK_STACK && 64BIT && !LOCKDEP |
319 | help | 310 | help |
320 | If you say Y here and the compiler supports the -mkernel-backchain | 311 | If you say Y here and the compiler supports the -mkernel-backchain |
@@ -326,7 +317,8 @@ config SMALL_STACK | |||
326 | Say N if you are unsure. | 317 | Say N if you are unsure. |
327 | 318 | ||
328 | config CHECK_STACK | 319 | config CHECK_STACK |
329 | bool "Detect kernel stack overflow" | 320 | def_bool y |
321 | prompt "Detect kernel stack overflow" | ||
330 | help | 322 | help |
331 | This option enables the compiler option -mstack-guard and | 323 | This option enables the compiler option -mstack-guard and |
332 | -mstack-size if they are available. If the compiler supports them | 324 | -mstack-size if they are available. If the compiler supports them |
@@ -350,7 +342,8 @@ config STACK_GUARD | |||
350 | 512 for 64 bit. | 342 | 512 for 64 bit. |
351 | 343 | ||
352 | config WARN_STACK | 344 | config WARN_STACK |
353 | bool "Emit compiler warnings for function with broken stack usage" | 345 | def_bool n |
346 | prompt "Emit compiler warnings for function with broken stack usage" | ||
354 | help | 347 | help |
355 | This option enables the compiler options -mwarn-framesize and | 348 | This option enables the compiler options -mwarn-framesize and |
356 | -mwarn-dynamicstack. If the compiler supports these options it | 349 | -mwarn-dynamicstack. If the compiler supports these options it |
@@ -385,24 +378,24 @@ config ARCH_SPARSEMEM_DEFAULT | |||
385 | def_bool y | 378 | def_bool y |
386 | 379 | ||
387 | config ARCH_SELECT_MEMORY_MODEL | 380 | config ARCH_SELECT_MEMORY_MODEL |
388 | def_bool y | 381 | def_bool y |
389 | 382 | ||
390 | config ARCH_ENABLE_MEMORY_HOTPLUG | 383 | config ARCH_ENABLE_MEMORY_HOTPLUG |
391 | def_bool y | 384 | def_bool y if SPARSEMEM |
392 | depends on SPARSEMEM | ||
393 | 385 | ||
394 | config ARCH_ENABLE_MEMORY_HOTREMOVE | 386 | config ARCH_ENABLE_MEMORY_HOTREMOVE |
395 | def_bool y | 387 | def_bool y |
396 | 388 | ||
397 | config ARCH_HIBERNATION_POSSIBLE | 389 | config ARCH_HIBERNATION_POSSIBLE |
398 | def_bool y if 64BIT | 390 | def_bool y if 64BIT |
399 | 391 | ||
400 | source "mm/Kconfig" | 392 | source "mm/Kconfig" |
401 | 393 | ||
402 | comment "I/O subsystem configuration" | 394 | comment "I/O subsystem configuration" |
403 | 395 | ||
404 | config QDIO | 396 | config QDIO |
405 | tristate "QDIO support" | 397 | def_tristate y |
398 | prompt "QDIO support" | ||
406 | ---help--- | 399 | ---help--- |
407 | This driver provides the Queued Direct I/O base support for | 400 | This driver provides the Queued Direct I/O base support for |
408 | IBM System z. | 401 | IBM System z. |
@@ -413,7 +406,8 @@ config QDIO | |||
413 | If unsure, say Y. | 406 | If unsure, say Y. |
414 | 407 | ||
415 | config CHSC_SCH | 408 | config CHSC_SCH |
416 | tristate "Support for CHSC subchannels" | 409 | def_tristate y |
410 | prompt "Support for CHSC subchannels" | ||
417 | help | 411 | help |
418 | This driver allows usage of CHSC subchannels. A CHSC subchannel | 412 | This driver allows usage of CHSC subchannels. A CHSC subchannel |
419 | is usually present on LPAR only. | 413 | is usually present on LPAR only. |
@@ -431,7 +425,8 @@ config CHSC_SCH | |||
431 | comment "Misc" | 425 | comment "Misc" |
432 | 426 | ||
433 | config IPL | 427 | config IPL |
434 | bool "Builtin IPL record support" | 428 | def_bool y |
429 | prompt "Builtin IPL record support" | ||
435 | help | 430 | help |
436 | If you want to use the produced kernel to IPL directly from a | 431 | If you want to use the produced kernel to IPL directly from a |
437 | device, you have to merge a bootsector specific to the device | 432 | device, you have to merge a bootsector specific to the device |
@@ -463,7 +458,8 @@ config FORCE_MAX_ZONEORDER | |||
463 | default "9" | 458 | default "9" |
464 | 459 | ||
465 | config PFAULT | 460 | config PFAULT |
466 | bool "Pseudo page fault support" | 461 | def_bool y |
462 | prompt "Pseudo page fault support" | ||
467 | help | 463 | help |
468 | Select this option, if you want to use PFAULT pseudo page fault | 464 | Select this option, if you want to use PFAULT pseudo page fault |
469 | handling under VM. If running native or in LPAR, this option | 465 | handling under VM. If running native or in LPAR, this option |
@@ -475,7 +471,8 @@ config PFAULT | |||
475 | this option. | 471 | this option. |
476 | 472 | ||
477 | config SHARED_KERNEL | 473 | config SHARED_KERNEL |
478 | bool "VM shared kernel support" | 474 | def_bool y |
475 | prompt "VM shared kernel support" | ||
479 | help | 476 | help |
480 | Select this option, if you want to share the text segment of the | 477 | Select this option, if you want to share the text segment of the |
481 | Linux kernel between different VM guests. This reduces memory | 478 | Linux kernel between different VM guests. This reduces memory |
@@ -486,7 +483,8 @@ config SHARED_KERNEL | |||
486 | doing and want to exploit this feature. | 483 | doing and want to exploit this feature. |
487 | 484 | ||
488 | config CMM | 485 | config CMM |
489 | tristate "Cooperative memory management" | 486 | def_tristate n |
487 | prompt "Cooperative memory management" | ||
490 | help | 488 | help |
491 | Select this option, if you want to enable the kernel interface | 489 | Select this option, if you want to enable the kernel interface |
492 | to reduce the memory size of the system. This is accomplished | 490 | to reduce the memory size of the system. This is accomplished |
@@ -498,14 +496,16 @@ config CMM | |||
498 | option. | 496 | option. |
499 | 497 | ||
500 | config CMM_IUCV | 498 | config CMM_IUCV |
501 | bool "IUCV special message interface to cooperative memory management" | 499 | def_bool y |
500 | prompt "IUCV special message interface to cooperative memory management" | ||
502 | depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) | 501 | depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) |
503 | help | 502 | help |
504 | Select this option to enable the special message interface to | 503 | Select this option to enable the special message interface to |
505 | the cooperative memory management. | 504 | the cooperative memory management. |
506 | 505 | ||
507 | config APPLDATA_BASE | 506 | config APPLDATA_BASE |
508 | bool "Linux - VM Monitor Stream, base infrastructure" | 507 | def_bool n |
508 | prompt "Linux - VM Monitor Stream, base infrastructure" | ||
509 | depends on PROC_FS | 509 | depends on PROC_FS |
510 | help | 510 | help |
511 | This provides a kernel interface for creating and updating z/VM APPLDATA | 511 | This provides a kernel interface for creating and updating z/VM APPLDATA |
@@ -520,7 +520,8 @@ config APPLDATA_BASE | |||
520 | The /proc entries can also be read from, showing the current settings. | 520 | The /proc entries can also be read from, showing the current settings. |
521 | 521 | ||
522 | config APPLDATA_MEM | 522 | config APPLDATA_MEM |
523 | tristate "Monitor memory management statistics" | 523 | def_tristate m |
524 | prompt "Monitor memory management statistics" | ||
524 | depends on APPLDATA_BASE && VM_EVENT_COUNTERS | 525 | depends on APPLDATA_BASE && VM_EVENT_COUNTERS |
525 | help | 526 | help |
526 | This provides memory management related data to the Linux - VM Monitor | 527 | This provides memory management related data to the Linux - VM Monitor |
@@ -536,7 +537,8 @@ config APPLDATA_MEM | |||
536 | appldata_mem.o. | 537 | appldata_mem.o. |
537 | 538 | ||
538 | config APPLDATA_OS | 539 | config APPLDATA_OS |
539 | tristate "Monitor OS statistics" | 540 | def_tristate m |
541 | prompt "Monitor OS statistics" | ||
540 | depends on APPLDATA_BASE | 542 | depends on APPLDATA_BASE |
541 | help | 543 | help |
542 | This provides OS related data to the Linux - VM Monitor Stream, like | 544 | This provides OS related data to the Linux - VM Monitor Stream, like |
@@ -550,7 +552,8 @@ config APPLDATA_OS | |||
550 | appldata_os.o. | 552 | appldata_os.o. |
551 | 553 | ||
552 | config APPLDATA_NET_SUM | 554 | config APPLDATA_NET_SUM |
553 | tristate "Monitor overall network statistics" | 555 | def_tristate m |
556 | prompt "Monitor overall network statistics" | ||
554 | depends on APPLDATA_BASE && NET | 557 | depends on APPLDATA_BASE && NET |
555 | help | 558 | help |
556 | This provides network related data to the Linux - VM Monitor Stream, | 559 | This provides network related data to the Linux - VM Monitor Stream, |
@@ -567,30 +570,32 @@ config APPLDATA_NET_SUM | |||
567 | source kernel/Kconfig.hz | 570 | source kernel/Kconfig.hz |
568 | 571 | ||
569 | config S390_HYPFS_FS | 572 | config S390_HYPFS_FS |
570 | bool "s390 hypervisor file system support" | 573 | def_bool y |
574 | prompt "s390 hypervisor file system support" | ||
571 | select SYS_HYPERVISOR | 575 | select SYS_HYPERVISOR |
572 | default y | ||
573 | help | 576 | help |
574 | This is a virtual file system intended to provide accounting | 577 | This is a virtual file system intended to provide accounting |
575 | information in an s390 hypervisor environment. | 578 | information in an s390 hypervisor environment. |
576 | 579 | ||
577 | config KEXEC | 580 | config KEXEC |
578 | bool "kexec system call" | 581 | def_bool n |
582 | prompt "kexec system call" | ||
579 | help | 583 | help |
580 | kexec is a system call that implements the ability to shutdown your | 584 | kexec is a system call that implements the ability to shutdown your |
581 | current kernel, and to start another kernel. It is like a reboot | 585 | current kernel, and to start another kernel. It is like a reboot |
582 | but is independent of hardware/microcode support. | 586 | but is independent of hardware/microcode support. |
583 | 587 | ||
584 | config ZFCPDUMP | 588 | config ZFCPDUMP |
585 | bool "zfcpdump support" | 589 | def_bool n |
590 | prompt "zfcpdump support" | ||
586 | select SMP | 591 | select SMP |
587 | default n | ||
588 | help | 592 | help |
589 | Select this option if you want to build an zfcpdump enabled kernel. | 593 | Select this option if you want to build an zfcpdump enabled kernel. |
590 | Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this. | 594 | Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this. |
591 | 595 | ||
592 | config S390_GUEST | 596 | config S390_GUEST |
593 | bool "s390 guest support for KVM (EXPERIMENTAL)" | 597 | def_bool y |
598 | prompt "s390 guest support for KVM (EXPERIMENTAL)" | ||
594 | depends on 64BIT && EXPERIMENTAL | 599 | depends on 64BIT && EXPERIMENTAL |
595 | select VIRTIO | 600 | select VIRTIO |
596 | select VIRTIO_RING | 601 | select VIRTIO_RING |
@@ -602,9 +607,9 @@ bool "s390 guest support for KVM (EXPERIMENTAL)" | |||
602 | the default console. | 607 | the default console. |
603 | 608 | ||
604 | config SECCOMP | 609 | config SECCOMP |
605 | bool "Enable seccomp to safely compute untrusted bytecode" | 610 | def_bool y |
611 | prompt "Enable seccomp to safely compute untrusted bytecode" | ||
606 | depends on PROC_FS | 612 | depends on PROC_FS |
607 | default y | ||
608 | help | 613 | help |
609 | This kernel feature is useful for number crunching applications | 614 | This kernel feature is useful for number crunching applications |
610 | that may need to compute untrusted bytecode during their | 615 | that may need to compute untrusted bytecode during their |