[PATCH] LOG2: Implement a general integer log2 facility in the kernel
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / arch / sparc64 / Kconfig
CommitLineData
1da177e4
LT
1# $Id: config.in,v 1.158 2002/01/24 22:14:44 davem Exp $
2# For a description of the syntax of this configuration file,
3# see the Configure script.
4#
5
6mainmenu "Linux/UltraSPARC Kernel Configuration"
7
0b57ee9e
AB
8config SPARC
9 bool
10 default y
11
5843e37e
DM
12config SPARC64
13 bool
14 default y
15 help
16 SPARC is a family of RISC microprocessors designed and marketed by
17 Sun Microsystems, incorporated. This port covers the newer 64-bit
18 UltraSPARC. The UltraLinux project maintains both the SPARC32 and
19 SPARC64 ports; its web page is available at
20 <http://www.ultralinux.org/>.
21
1da177e4
LT
22config 64BIT
23 def_bool y
24
25config MMU
26 bool
27 default y
28
29config TIME_INTERPOLATION
30 bool
31 default y
32
a08b6b79
AV
33config ARCH_MAY_HAVE_PC_FDC
34 bool
35 default y
36
f0d1b0b3
DH
37config ARCH_HAS_ILOG2_U32
38 bool
39 default n
40
41config ARCH_HAS_ILOG2_U64
42 bool
43 default n
44
f6bc0c1c
AV
45config AUDIT_ARCH
46 bool
47 default y
48
1da177e4
LT
49choice
50 prompt "Kernel page size"
51 default SPARC64_PAGE_SIZE_8KB
52
53config SPARC64_PAGE_SIZE_8KB
54 bool "8KB"
55 help
56 This lets you select the page size of the kernel.
57
58 8KB and 64KB work quite well, since Sparc ELF sections
59 provide for up to 64KB alignment.
60
61 Therefore, 512KB and 4MB are for expert hackers only.
62
63 If you don't know what to do, choose 8KB.
64
65config SPARC64_PAGE_SIZE_64KB
66 bool "64KB"
67
68config SPARC64_PAGE_SIZE_512KB
69 bool "512KB"
70
71config SPARC64_PAGE_SIZE_4MB
72 bool "4MB"
73
74endchoice
75
bb49bcda
DM
76config SECCOMP
77 bool "Enable seccomp to safely compute untrusted bytecode"
78 depends on PROC_FS
79 default y
80 help
81 This kernel feature is useful for number crunching applications
82 that may need to compute untrusted bytecode during their
83 execution. By using pipes or other transports made available to
84 the process as file descriptors supporting the read/write
85 syscalls, it's possible to isolate those applications in
86 their own address space using seccomp. Once seccomp is
87 enabled via /proc/<pid>/seccomp, it cannot be disabled
88 and the task is only allowed to execute a few safe syscalls
89 defined by each seccomp mode.
90
91 If unsure, say Y. Only embedded should say N here.
92
a6524813
DM
93source kernel/Kconfig.hz
94
1da177e4
LT
95source "init/Kconfig"
96
97config SYSVIPC_COMPAT
98 bool
99 depends on COMPAT && SYSVIPC
100 default y
101
e18e2a00
DM
102config GENERIC_HARDIRQS
103 bool
104 default y
105
1da177e4
LT
106menu "General machine setup"
107
1da177e4
LT
108config SMP
109 bool "Symmetric multi-processing support"
110 ---help---
111 This enables support for systems with more than one CPU. If you have
112 a system with only one CPU, say N. If you have a system with more than
113 one CPU, say Y.
114
115 If you say N here, the kernel will run on single and multiprocessor
116 machines, but will use only one CPU of a multiprocessor machine. If
117 you say Y here, the kernel will run on many, but not all,
118 singleprocessor machines. On a singleprocessor machine, the kernel
119 will run faster if you say N here.
120
121 People using multiprocessor machines who say Y here should also say
122 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
123 Management" code will be disabled if you say Y here.
124
125 See also the <file:Documentation/smp.txt>,
126 <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
127 <http://www.tldp.org/docs.html#howto>.
128
129 If you don't know what to do here, say N.
130
131config PREEMPT
132 bool "Preemptible Kernel"
133 help
134 This option reduces the latency of the kernel when reacting to
135 real-time or interactive events by allowing a low priority process to
136 be preempted even if it is in kernel mode executing a system call.
137 This allows applications to run more reliably even when the system is
138 under load.
139
140 Say Y here if you are building a kernel for a desktop, embedded
141 or real-time system. Say N if you are unsure.
142
143config NR_CPUS
144 int "Maximum number of CPUs (2-64)"
145 range 2 64
146 depends on SMP
147 default "32"
148
149source "drivers/cpufreq/Kconfig"
150
151config US3_FREQ
152 tristate "UltraSPARC-III CPU Frequency driver"
153 depends on CPU_FREQ
154 select CPU_FREQ_TABLE
155 help
156 This adds the CPUFreq driver for UltraSPARC-III processors.
157
158 For details, take a look at <file:Documentation/cpu-freq>.
159
160 If in doubt, say N.
161
162config US2E_FREQ
163 tristate "UltraSPARC-IIe CPU Frequency driver"
164 depends on CPU_FREQ
165 select CPU_FREQ_TABLE
166 help
167 This adds the CPUFreq driver for UltraSPARC-IIe processors.
168
169 For details, take a look at <file:Documentation/cpu-freq>.
170
171 If in doubt, say N.
172
1da177e4
LT
173# Global things across all Sun machines.
174config RWSEM_GENERIC_SPINLOCK
175 bool
176
177config RWSEM_XCHGADD_ALGORITHM
178 bool
179 default y
180
2d78d4be
AM
181config GENERIC_FIND_NEXT_BIT
182 bool
183 default y
184
185config GENERIC_HWEIGHT
186 bool
187 default y if !ULTRA_HAS_POPULATION_COUNT
188
1da177e4
LT
189config GENERIC_CALIBRATE_DELAY
190 bool
191 default y
192
193choice
194 prompt "SPARC64 Huge TLB Page Size"
195 depends on HUGETLB_PAGE
196 default HUGETLB_PAGE_SIZE_4MB
197
198config HUGETLB_PAGE_SIZE_4MB
199 bool "4MB"
200
201config HUGETLB_PAGE_SIZE_512K
dcc1e8dd 202 depends on !SPARC64_PAGE_SIZE_4MB && !SPARC64_PAGE_SIZE_512KB
1da177e4
LT
203 bool "512K"
204
205config HUGETLB_PAGE_SIZE_64K