sparc: switch to generic compat rt_sigpending()
[deliverable/linux.git] / arch / sparc / Kconfig
CommitLineData
761b6026
BB
1config 64BIT
2 bool "64-bit kernel" if ARCH = "sparc"
3 default ARCH = "sparc64"
4 help
5 SPARC is a family of RISC microprocessors designed and marketed by
6 Sun Microsystems, incorporated. They are very widely found in Sun
7 workstations and clones.
8
9 Say yes to build a 64-bit kernel - formerly known as sparc64
10 Say no to build a 32-bit kernel - formerly known as sparc
11
35da3e39
SR
12config SPARC
13 bool
14 default y
7b14c647 15 select OF
3cfc535c 16 select OF_PROMTREE
35da3e39
SR
17 select HAVE_IDE
18 select HAVE_OPROFILE
26b4c912 19 select HAVE_ARCH_KGDB if !SMP || SPARC64
35da3e39 20 select HAVE_ARCH_TRACEHOOK
7ac57a89 21 select SYSCTL_EXCEPTION_TRACE
35da3e39 22 select ARCH_WANT_OPTIONAL_GPIOLIB
193d2aad 23 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
35da3e39
SR
24 select RTC_CLASS
25 select RTC_DRV_M48T59
e360adbe 26 select HAVE_IRQ_WORK
02f7a189 27 select HAVE_DMA_ATTRS
451d7400 28 select HAVE_DMA_API_DEBUG
46eb3b64 29 select HAVE_ARCH_JUMP_LABEL
6baa9b20 30 select HAVE_GENERIC_HARDIRQS
6baa9b20 31 select GENERIC_IRQ_SHOW
c1d7e01d 32 select ARCH_WANT_IPC_PARSE_VERSION
d6d04819 33 select USE_GENERIC_SMP_HELPERS if SMP
a21a2fd4 34 select GENERIC_PCI_IOMAP
d314d74c 35 select HAVE_NMI_WATCHDOG if SPARC64
e47b65b0 36 select HAVE_BPF_JIT
9b2a60c4 37 select HAVE_DEBUG_BUGVERBOSE
f0a2bc7e 38 select GENERIC_SMP_IDLE_THREAD
ded1cc5c 39 select GENERIC_CMOS_UPDATE
c7523a7c 40 select GENERIC_CLOCKEVENTS
2922585b 41 select GENERIC_STRNCPY_FROM_USER
2c66f623 42 select GENERIC_STRNLEN_USER
786d35d4 43 select MODULES_USE_ELF_RELA
eaca6eae 44 select ODD_RT_SIGACTION
99b06feb 45 select GENERIC_SIGALTSTACK
826c8772 46 select GENERIC_COMPAT_RT_SIGPROCMASK
55bb5a1e 47 select GENERIC_COMPAT_RT_SIGPENDING
35da3e39 48
35da3e39 49config SPARC32
761b6026 50 def_bool !64BIT
aea1181b 51 select GENERIC_ATOMIC64
c6df4b17 52 select CLZ_TAB
af1839eb 53 select HAVE_UID16
35da3e39 54
26b4c912 55config SPARC64
761b6026 56 def_bool 64BIT
5bc05308 57 select ARCH_SUPPORTS_MSI
26b4c912 58 select HAVE_FUNCTION_TRACER
9960e9e8
DM
59 select HAVE_FUNCTION_GRAPH_TRACER
60 select HAVE_FUNCTION_GRAPH_FP_TEST
63b75495 61 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
26b4c912
SR
62 select HAVE_KRETPROBES
63 select HAVE_KPROBES
4a0100f7 64 select HAVE_RCU_TABLE_FREE if SMP
95f72d1e 65 select HAVE_MEMBLOCK
2a4814df 66 select HAVE_MEMBLOCK_NODE_MAP
67605d68 67 select HAVE_SYSCALL_WRAPPERS
9be12f9b
DM
68 select HAVE_DYNAMIC_FTRACE
69 select HAVE_FTRACE_MCOUNT_RECORD
c658ad1b 70 select HAVE_SYSCALL_TRACEPOINTS
b69ec42b 71 select HAVE_DEBUG_KMEMLEAK
26b4c912
SR
72 select RTC_DRV_CMOS
73 select RTC_DRV_BQ4802
74 select RTC_DRV_SUN4V
75 select RTC_DRV_STARFIRE
cdd6c482 76 select HAVE_PERF_EVENTS
906010b2 77 select PERF_USE_VMALLOC
fcd8d4f4 78 select IRQ_PREFLOW_FASTEOI
df013ffb 79 select ARCH_HAVE_NMI_SAFE_CMPXCHG
178a2960 80 select HAVE_C_RECORDMCOUNT
625d693e 81 select NO_BOOTMEM
26b4c912 82
5e538790
SR
83config ARCH_DEFCONFIG
84 string
85 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
86 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
87
fe6875ec
SR
88# CONFIG_BITS can be used at source level to get 32/64 bits
89config BITS
90 int
91 default 32 if SPARC32
92 default 64 if SPARC64
5e538790 93
26b4c912
SR
94config IOMMU_HELPER
95 bool
96 default y if SPARC64
97
26b4c912
SR
98config STACKTRACE_SUPPORT
99 bool
100 default y if SPARC64
101
102config LOCKDEP_SUPPORT
103 bool
104 default y if SPARC64
105
6a5726dd
DM
106config HAVE_LATENCYTOP_SUPPORT
107 bool
108 default y if SPARC64
109
26b4c912
SR
110config AUDIT_ARCH
111 bool
7e7e93a2 112 default y
26b4c912
SR
113
114config HAVE_SETUP_PER_CPU_AREA
115 def_bool y if SPARC64
116
bcb2107f 117config NEED_PER_CPU_EMBED_FIRST_CHUNK
4fd78a5f
DM
118 def_bool y if SPARC64
119
a70c6913
TH
120config NEED_PER_CPU_PAGE_FIRST_CHUNK
121 def_bool y if SPARC64
122
1da177e4
LT
123config MMU
124 bool
125 default y
126
1da177e4
LT
127config HIGHMEM
128 bool
26b4c912 129 default y if SPARC32
1da177e4 130
5ac6da66
CL
131config ZONE_DMA
132 bool
26b4c912 133 default y if SPARC32
5ac6da66 134
d15b51be
FT
135config NEED_DMA_MAP_STATE
136 def_bool y
137
18e98307
FT
138config NEED_SG_DMA_LENGTH
139 def_bool y
140
1da177e4
LT
141config GENERIC_ISA_DMA
142 bool
26b4c912 143 default y if SPARC32
1da177e4 144
15df0f33
DM
145config GENERIC_GPIO
146 bool
147 help
148 Generic GPIO API support
149
0785b9dc
SR
150config ARCH_NO_VIRT_TO_BUS
151 def_bool y
152
6a11f75b
AM
153config ARCH_SUPPORTS_DEBUG_PAGEALLOC
154 def_bool y if SPARC64
155
1da177e4
LT
156source "init/Kconfig"
157
dc52ddc0
MH
158source "kernel/Kconfig.freezer"
159
26b4c912 160menu "Processor type and features"
1da177e4 161
1da177e4 162config SMP
6b7679dd 163 bool "Symmetric multi-processing support"
1da177e4
LT
164 ---help---
165 This enables support for systems with more than one CPU. If you have
166 a system with only one CPU, say N. If you have a system with more
167 than one CPU, say Y.
168
169 If you say N here, the kernel will run on single and multiprocessor
170 machines, but will use only one CPU of a multiprocessor machine. If
171 you say Y here, the kernel will run on many, but not all,
172 singleprocessor machines. On a singleprocessor machine, the kernel
173 will run faster if you say N here.
174
175 People using multiprocessor machines who say Y here should also say
176 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
177 Management" code will be disabled if you say Y here.
178
03502faa
AB
179 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
180 available at <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
181
182 If you don't know what to do here, say N.
183
184config NR_CPUS
26b4c912 185 int "Maximum number of CPUs"
1da177e4 186 depends on SMP
26b4c912
SR
187 range 2 32 if SPARC32
188 range 2 1024 if SPARC64
189 default 32 if SPARC32
190 default 64 if SPARC64
1da177e4 191
26b4c912 192source kernel/Kconfig.hz
1da177e4 193
1da177e4
LT
194config RWSEM_GENERIC_SPINLOCK
195 bool
26b4c912 196 default y if SPARC32
1da177e4
LT
197
198config RWSEM_XCHGADD_ALGORITHM
199 bool
26b4c912 200 default y if SPARC64
1da177e4 201
d59288b7
AM
202config GENERIC_HWEIGHT
203 bool
26b4c912 204 default y if !ULTRA_HAS_POPULATION_COUNT
d59288b7 205
1da177e4
LT
206config GENERIC_CALIBRATE_DELAY
207 bool
208 default y
209
a08b6b79
Z
210config ARCH_MAY_HAVE_PC_FDC
211 bool
212 default y
213
5f81941c
MH
214config EMULATED_CMPXCHG
215 bool
26b4c912 216 default y if SPARC32
5f81941c
MH
217 help
218 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
219 is emulated, and therefore it is not completely atomic.
220
d670bd4f
SR
221# Makefile helpers
222config SPARC32_SMP
223 bool
224 default y
225 depends on SPARC32 && SMP
226
227config SPARC64_SMP
228 bool
229 default y
230 depends on SPARC64 && SMP
231
c57ec52f
DM
232config EARLYFB
233 bool "Support for early boot text console"
234 default y
235 depends on SPARC64
236 help
237 Say Y here to enable a faster early framebuffer boot console.
238
26b4c912
SR
239config SECCOMP
240 bool "Enable seccomp to safely compute untrusted bytecode"
241 depends on SPARC64 && PROC_FS
242 default y
243 help
244 This kernel feature is useful for number crunching applications
245 that may need to compute untrusted bytecode during their
246 execution. By using pipes or other transports made available to
247 the process as file descriptors supporting the read/write
248 syscalls, it's possible to isolate those applications in
249 their own address space using seccomp. Once seccomp is
250 enabled via /proc/<pid>/seccomp, it cannot be disabled
251 and the task is only allowed to execute a few safe syscalls
252 defined by each seccomp mode.
253
254 If unsure, say Y. Only embedded should say N here.
255
256config HOTPLUG_CPU
257 bool "Support for hot-pluggable CPUs"
258 depends on SPARC64 && SMP
259 select HOTPLUG
260 help
261 Say Y here to experiment with turning CPUs off and on. CPUs
262 can be controlled through /sys/devices/system/cpu/cpu#.
263 Say N if you want to disable CPU hotplug.
264
26b4c912
SR
265if SPARC64
266source "drivers/cpufreq/Kconfig"
267
268config US3_FREQ
269 tristate "UltraSPARC-III CPU Frequency driver"
270 depends on CPU_FREQ
271 select CPU_FREQ_TABLE
272 help
273 This adds the CPUFreq driver for UltraSPARC-III processors.
274
275 For details, take a look at <file:Documentation/cpu-freq>.
276
277 If in doubt, say N.
278
279config US2E_FREQ
280 tristate "UltraSPARC-IIe CPU Frequency driver"
281 depends on CPU_FREQ
282 select CPU_FREQ_TABLE
283 help
284 This adds the CPUFreq driver for UltraSPARC-IIe processors.
285
286 For details, take a look at <file:Documentation/cpu-freq>.
287
288 If in doubt, say N.
289
290endif
291
292config US3_MC
293 tristate "UltraSPARC-III Memory Controller driver"
294 depends on SPARC64
295 default y
296 help
297 This adds a driver for the UltraSPARC-III memory controller.
298 Loading this driver allows exact mnemonic strings to be
299 printed in the event of a memory error, so that the faulty DIMM
300 on the motherboard can be matched to the error.
301
302 If in doubt, say Y, as this information can be very useful.
303
304# Global things across all Sun machines.
305config GENERIC_LOCKBREAK
1da177e4
LT
306 bool
307 default y
26b4c912
SR
308 depends on SPARC64 && SMP && PREEMPT
309
26b4c912
SR
310config NUMA
311 bool "NUMA support"
312 depends on SPARC64 && SMP
313
314config NODES_SHIFT
315 int
316 default "4"
317 depends on NEED_MULTIPLE_NODES
318
319# Some NUMA nodes have memory ranges that span
320# other nodes. Even though a pfn is valid and
321# between a node's start and end pfns, it may not
322# reside on that node. See memmap_init_zone()
323# for details.
324config NODES_SPAN_OTHER_NODES
325 def_bool y
326 depends on NEED_MULTIPLE_NODES
327
26b4c912
SR
328config ARCH_SELECT_MEMORY_MODEL
329 def_bool y if SPARC64
330
331config ARCH_SPARSEMEM_ENABLE
332 def_bool y if SPARC64
333 select SPARSEMEM_VMEMMAP_ENABLE
334
335config ARCH_SPARSEMEM_DEFAULT
336 def_bool y if SPARC64
337
338source "mm/Kconfig"
339
340config SCHED_SMT
341 bool "SMT (Hyperthreading) scheduler support"
342 depends on SPARC64 && SMP
343 default y
344 help
345 SMT scheduler support improves the CPU scheduler's decision making
346 when dealing with SPARC cpus at a cost of slightly increased overhead
347 in some places. If unsure say N here.
348
349config SCHED_MC
350 bool "Multi-core scheduler support"
351 depends on SPARC64 && SMP
352 default y
353 help
354 Multi-core scheduler support improves the CPU scheduler's decision
355 making when dealing with multi-core CPU chips at a cost of slightly
356 increased overhead in some places. If unsure say N here.
357
26b4c912 358source "kernel/Kconfig.preempt"
26b4c912
SR
359
360config CMDLINE_BOOL
361 bool "Default bootloader kernel arguments"
362 depends on SPARC64
363
364config CMDLINE
365 string "Initial kernel command string"
366 depends on CMDLINE_BOOL
367 default "console=ttyS0,9600 root=/dev/sda1"
368 help
369 Say Y here if you want to be able to pass default arguments to
370 the kernel. This will be overridden by the bootloader, if you
371 use one (such as SILO). This is most useful if you want to boot
372 a kernel from TFTP, and want default options to be available
373 with having them passed on the command line.
374
375 NOTE: This option WILL override the PROM bootargs setting!
376
377config SUN_PM
378 bool
379 default y if SPARC32
1da177e4
LT
380 help
381 Enable power management and CPU standby features on supported
382 SPARC platforms.
383
4b27e0e1
SR
384config SPARC_LED
385 tristate "Sun4m LED driver"
26b4c912 386 depends on SPARC32
4b27e0e1
SR
387 help
388 This driver toggles the front-panel LED on sun4m systems
389 in a user-specifiable manner. Its state can be probed
390 by reading /proc/led and its blinking mode can be changed
391 via writes to /proc/led
392
26b4c912
SR
393config SERIAL_CONSOLE
394 bool
395 depends on SPARC32
396 default y
397 ---help---
398 If you say Y here, it will be possible to use a serial port as the
399 system console (the system console is the device which receives all
400 kernel messages and warnings and which allows logins in single user
401 mode). This could be useful if some terminal or printer is connected
402 to that serial port.
403
404 Even if you say Y here, the currently visible virtual console
405 (/dev/tty0) will still be used as the system console by default, but
406 you can alter that using a kernel command line option such as
407 "console=ttyS1". (Try "man bootparam" or see the documentation of
408 your boot loader (silo) about how to pass options to the kernel at
409 boot time.)
410
411 If you don't have a graphics card installed and you say Y here, the
412 kernel will automatically use the first serial line, /dev/ttyS0, as
413 system console.
414
415 If unsure, say N.
4b27e0e1 416
5213a780
KE
417config SPARC_LEON
418 bool "Sparc Leon processor family"
419 depends on SPARC32
420 ---help---
421 If you say Y here if you are running on a SPARC-LEON processor.
422 The LEON processor is a synthesizable VHDL model of the
423 SPARC-v8 standard. LEON is part of the GRLIB collection of
424 IP cores that are distributed under GPL. GRLIB can be downloaded
425 from www.gaisler.com. You can download a sparc-linux cross-compilation
426 toolchain at www.gaisler.com.
427
684151a7
DH
428if SPARC_LEON
429menu "U-Boot options"
430
431config UBOOT_LOAD_ADDR
432 hex "uImage Load Address"
433 default 0x40004000
434 ---help---
435 U-Boot kernel load address, the address in physical address space
436 where u-boot will place the Linux kernel before booting it.
437 This address is normally the base address of main memory + 0x4000.
438
439config UBOOT_FLASH_ADDR
440 hex "uImage.o Load Address"
441 default 0x00080000
442 ---help---
443 Optional setting only affecting the uImage.o ELF-image used to
444 download the uImage file to the target using a ELF-loader other than
445 U-Boot. It may for example be used to download an uImage to FLASH with
446 the GRMON utility before even starting u-boot.
447
448config UBOOT_ENTRY_ADDR
449 hex "uImage Entry Address"
450 default 0xf0004000
451 ---help---
452 Do not change this unless you know what you're doing. This is
453 hardcoded by the SPARC32 and LEON port.
454
455 This is the virtual address u-boot jumps to when booting the Linux
456 Kernel.
457
458endmenu
459endif
460
4b27e0e1
SR
461endmenu
462
463menu "Bus options (PCI etc.)"
4b27e0e1
SR
464config SBUS
465 bool
466 default y
467
468config SBUSCHAR
469 bool
470 default y
471
26b4c912
SR
472config SUN_LDOMS
473 bool "Sun Logical Domains support"
474 depends on SPARC64
475 help
476 Say Y here is you want to support virtual devices via
477 Logical Domains.
478
1da177e4
LT
479config PCI
480 bool "Support for PCI and PS/2 keyboard/mouse"
481 help
26b4c912
SR
482 Find out whether your system includes a PCI bus. PCI is the name of
483 a bus system, i.e. the way the CPU talks to the other stuff inside
484 your box. If you say Y here, the kernel will include drivers and
485 infrastructure code to support PCI bus devices.
486
1da177e4
LT
487 CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
488 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
489 All of these platforms are extremely obscure, so say N if unsure.
490
26b4c912
SR
491config PCI_DOMAINS
492 def_bool PCI if SPARC64
493
36e23590
MW
494config PCI_SYSCALL
495 def_bool PCI
496
cfe3af5d
DH
497config PCIC_PCI
498 bool
8c47f8d0 499 depends on PCI && SPARC32 && !SPARC_LEON
cfe3af5d
DH
500 default y
501
26893c13
DH
502config LEON_PCI
503 bool
504 depends on PCI && SPARC_LEON
505 default y
506
5d07b786
DH
507config GRPCI2
508 bool "GRPCI2 Host Bridge Support"
509 depends on LEON_PCI
510 default y
511 help
512 Say Y here to include the GRPCI2 Host Bridge Driver.
513
1da177e4
LT
514source "drivers/pci/Kconfig"
515
c6afec5e
DM
516source "drivers/pcmcia/Kconfig"
517
1da177e4
LT
518config SUN_OPENPROMFS
519 tristate "Openprom tree appears in /proc/openprom"
520 help
521 If you say Y, the OpenPROM device tree will be available as a
522 virtual file system, which you can mount to /proc/openprom by "mount
523 -t openpromfs none /proc/openprom".
524
525 To compile the /proc/openprom support as a module, choose M here: the
526 module will be called openpromfs.
527
528 Only choose N if you know in advance that you will not need to modify
529 OpenPROM settings on the running system.
530
1cb85e80 531# Makefile helper
d670bd4f
SR
532config SPARC64_PCI
533 bool
534 default y
535 depends on SPARC64 && PCI
30aaa808
WLII
536
537endmenu
538
12e271a8
SR
539menu "Executable file formats"
540
541source "fs/Kconfig.binfmt"
542
26b4c912
SR
543config COMPAT
544 bool
545 depends on SPARC64
546 default y
547 select COMPAT_BINFMT_ELF
af1839eb 548 select HAVE_UID16
48b25c43 549 select ARCH_WANT_OLD_COMPAT_IPC
26b4c912
SR
550
551config SYSVIPC_COMPAT
552 bool
553 depends on COMPAT && SYSVIPC
554 default y
555
45de6767
DH
556config KEYS_COMPAT
557 def_bool y if COMPAT && KEYS
558
12e271a8
SR
559endmenu
560
d5950b43
SR
561source "net/Kconfig"
562
30aaa808 563source "drivers/Kconfig"
1da177e4 564
1da177e4 565source "drivers/sbus/char/Kconfig"
1da177e4 566
1da177e4
LT
567source "fs/Kconfig"
568
1da177e4
LT
569source "arch/sparc/Kconfig.debug"
570
571source "security/Kconfig"
572
573source "crypto/Kconfig"
574
575source "lib/Kconfig"
This page took 0.594926 seconds and 5 git commands to generate.