arm64: ftrace: Add CALLER_ADDRx macros
[linux-2.6-block.git] / arch / arm64 / Kconfig
1 config ARM64
2         def_bool y
3         select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
4         select ARCH_USE_CMPXCHG_LOCKREF
5         select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
6         select ARCH_WANT_OPTIONAL_GPIOLIB
7         select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
8         select ARCH_WANT_FRAME_POINTERS
9         select ARM_AMBA
10         select ARM_ARCH_TIMER
11         select ARM_GIC
12         select BUILDTIME_EXTABLE_SORT
13         select CLONE_BACKWARDS
14         select COMMON_CLK
15         select CPU_PM if (SUSPEND || CPU_IDLE)
16         select DCACHE_WORD_ACCESS
17         select GENERIC_CLOCKEVENTS
18         select GENERIC_CLOCKEVENTS_BROADCAST if SMP
19         select GENERIC_CPU_AUTOPROBE
20         select GENERIC_EARLY_IOREMAP
21         select GENERIC_IOMAP
22         select GENERIC_IRQ_PROBE
23         select GENERIC_IRQ_SHOW
24         select GENERIC_SCHED_CLOCK
25         select GENERIC_SMP_IDLE_THREAD
26         select GENERIC_STRNCPY_FROM_USER
27         select GENERIC_STRNLEN_USER
28         select GENERIC_TIME_VSYSCALL
29         select HARDIRQS_SW_RESEND
30         select HAVE_ARCH_JUMP_LABEL
31         select HAVE_ARCH_KGDB
32         select HAVE_ARCH_TRACEHOOK
33         select HAVE_C_RECORDMCOUNT
34         select HAVE_DEBUG_BUGVERBOSE
35         select HAVE_DEBUG_KMEMLEAK
36         select HAVE_DMA_API_DEBUG
37         select HAVE_DMA_ATTRS
38         select HAVE_DMA_CONTIGUOUS
39         select HAVE_DYNAMIC_FTRACE
40         select HAVE_EFFICIENT_UNALIGNED_ACCESS
41         select HAVE_FTRACE_MCOUNT_RECORD
42         select HAVE_FUNCTION_TRACER
43         select HAVE_FUNCTION_GRAPH_TRACER
44         select HAVE_GENERIC_DMA_COHERENT
45         select HAVE_HW_BREAKPOINT if PERF_EVENTS
46         select HAVE_MEMBLOCK
47         select HAVE_PATA_PLATFORM
48         select HAVE_PERF_EVENTS
49         select HAVE_PERF_REGS
50         select HAVE_PERF_USER_STACK_DUMP
51         select IRQ_DOMAIN
52         select MODULES_USE_ELF_RELA
53         select NO_BOOTMEM
54         select OF
55         select OF_EARLY_FLATTREE
56         select OF_RESERVED_MEM
57         select PERF_USE_VMALLOC
58         select POWER_RESET
59         select POWER_SUPPLY
60         select RTC_LIB
61         select SPARSE_IRQ
62         select SYSCTL_EXCEPTION_TRACE
63         help
64           ARM 64-bit (AArch64) Linux support.
65
66 config 64BIT
67         def_bool y
68
69 config ARCH_PHYS_ADDR_T_64BIT
70         def_bool y
71
72 config MMU
73         def_bool y
74
75 config NO_IOPORT_MAP
76         def_bool y
77
78 config STACKTRACE_SUPPORT
79         def_bool y
80
81 config LOCKDEP_SUPPORT
82         def_bool y
83
84 config TRACE_IRQFLAGS_SUPPORT
85         def_bool y
86
87 config RWSEM_XCHGADD_ALGORITHM
88         def_bool y
89
90 config GENERIC_HWEIGHT
91         def_bool y
92
93 config GENERIC_CSUM
94         def_bool y
95
96 config GENERIC_CALIBRATE_DELAY
97         def_bool y
98
99 config ZONE_DMA
100         def_bool y
101
102 config ARCH_DMA_ADDR_T_64BIT
103         def_bool y
104
105 config NEED_DMA_MAP_STATE
106         def_bool y
107
108 config NEED_SG_DMA_LENGTH
109         def_bool y
110
111 config SWIOTLB
112         def_bool y
113
114 config IOMMU_HELPER
115         def_bool SWIOTLB
116
117 config KERNEL_MODE_NEON
118         def_bool y
119
120 source "init/Kconfig"
121
122 source "kernel/Kconfig.freezer"
123
124 menu "Platform selection"
125
126 config ARCH_VEXPRESS
127         bool "ARMv8 software model (Versatile Express)"
128         select ARCH_REQUIRE_GPIOLIB
129         select COMMON_CLK_VERSATILE
130         select POWER_RESET_VEXPRESS
131         select VEXPRESS_CONFIG
132         help
133           This enables support for the ARMv8 software model (Versatile
134           Express).
135
136 config ARCH_XGENE
137         bool "AppliedMicro X-Gene SOC Family"
138         help
139           This enables support for AppliedMicro X-Gene SOC Family
140
141 endmenu
142
143 menu "Bus support"
144
145 config ARM_AMBA
146         bool
147
148 endmenu
149
150 menu "Kernel Features"
151
152 config ARM64_64K_PAGES
153         bool "Enable 64KB pages support"
154         help
155           This feature enables 64KB pages support (4KB by default)
156           allowing only two levels of page tables and faster TLB
157           look-up. AArch32 emulation is not available when this feature
158           is enabled.
159
160 config CPU_BIG_ENDIAN
161        bool "Build big-endian kernel"
162        help
163          Say Y if you plan on running a kernel in big-endian mode.
164
165 config SMP
166         bool "Symmetric Multi-Processing"
167         help
168           This enables support for systems with more than one CPU.  If
169           you say N here, the kernel will run on single and
170           multiprocessor machines, but will use only one CPU of a
171           multiprocessor machine. If you say Y here, the kernel will run
172           on many, but not all, single processor machines. On a single
173           processor machine, the kernel will run faster if you say N
174           here.
175
176           If you don't know what to do here, say N.
177
178 config SCHED_MC
179         bool "Multi-core scheduler support"
180         depends on SMP
181         help
182           Multi-core scheduler support improves the CPU scheduler's decision
183           making when dealing with multi-core CPU chips at a cost of slightly
184           increased overhead in some places. If unsure say N here.
185
186 config SCHED_SMT
187         bool "SMT scheduler support"
188         depends on SMP
189         help
190           Improves the CPU scheduler's decision making when dealing with
191           MultiThreading at a cost of slightly increased overhead in some
192           places. If unsure say N here.
193
194 config NR_CPUS
195         int "Maximum number of CPUs (2-32)"
196         range 2 32
197         depends on SMP
198         # These have to remain sorted largest to smallest
199         default "8"
200
201 config HOTPLUG_CPU
202         bool "Support for hot-pluggable CPUs"
203         depends on SMP
204         help
205           Say Y here to experiment with turning CPUs off and on.  CPUs
206           can be controlled through /sys/devices/system/cpu.
207
208 source kernel/Kconfig.preempt
209
210 config HZ
211         int
212         default 100
213
214 config ARCH_HAS_HOLES_MEMORYMODEL
215         def_bool y if SPARSEMEM
216
217 config ARCH_SPARSEMEM_ENABLE
218         def_bool y
219         select SPARSEMEM_VMEMMAP_ENABLE
220
221 config ARCH_SPARSEMEM_DEFAULT
222         def_bool ARCH_SPARSEMEM_ENABLE
223
224 config ARCH_SELECT_MEMORY_MODEL
225         def_bool ARCH_SPARSEMEM_ENABLE
226
227 config HAVE_ARCH_PFN_VALID
228         def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
229
230 config HW_PERF_EVENTS
231         bool "Enable hardware performance counter support for perf events"
232         depends on PERF_EVENTS
233         default y
234         help
235           Enable hardware performance counter support for perf events. If
236           disabled, perf events will use software events only.
237
238 config SYS_SUPPORTS_HUGETLBFS
239         def_bool y
240
241 config ARCH_WANT_GENERAL_HUGETLB
242         def_bool y
243
244 config ARCH_WANT_HUGE_PMD_SHARE
245         def_bool y if !ARM64_64K_PAGES
246
247 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
248         def_bool y
249
250 config ARCH_HAS_CACHE_LINE_SIZE
251         def_bool y
252
253 source "mm/Kconfig"
254
255 config XEN_DOM0
256         def_bool y
257         depends on XEN
258
259 config XEN
260         bool "Xen guest support on ARM64 (EXPERIMENTAL)"
261         depends on ARM64 && OF
262         select SWIOTLB_XEN
263         help
264           Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
265
266 config FORCE_MAX_ZONEORDER
267         int
268         default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
269         default "11"
270
271 endmenu
272
273 menu "Boot options"
274
275 config CMDLINE
276         string "Default kernel command string"
277         default ""
278         help
279           Provide a set of default command-line options at build time by
280           entering them here. As a minimum, you should specify the the
281           root device (e.g. root=/dev/nfs).
282
283 config CMDLINE_FORCE
284         bool "Always use the default kernel command string"
285         help
286           Always use the default kernel command string, even if the boot
287           loader passes other arguments to the kernel.
288           This is useful if you cannot or don't want to change the
289           command-line options your boot loader passes to the kernel.
290
291 endmenu
292
293 menu "Userspace binary formats"
294
295 source "fs/Kconfig.binfmt"
296
297 config COMPAT
298         bool "Kernel support for 32-bit EL0"
299         depends on !ARM64_64K_PAGES
300         select COMPAT_BINFMT_ELF
301         select HAVE_UID16
302         select OLD_SIGSUSPEND3
303         select COMPAT_OLD_SIGACTION
304         help
305           This option enables support for a 32-bit EL0 running under a 64-bit
306           kernel at EL1. AArch32-specific components such as system calls,
307           the user helper functions, VFP support and the ptrace interface are
308           handled appropriately by the kernel.
309
310           If you want to execute 32-bit userspace applications, say Y.
311
312 config SYSVIPC_COMPAT
313         def_bool y
314         depends on COMPAT && SYSVIPC
315
316 endmenu
317
318 menu "Power management options"
319
320 source "kernel/power/Kconfig"
321
322 config ARCH_SUSPEND_POSSIBLE
323         def_bool y
324
325 config ARM64_CPU_SUSPEND
326         def_bool PM_SLEEP
327
328 endmenu
329
330 menu "CPU Power Management"
331
332 source "drivers/cpuidle/Kconfig"
333
334 source "drivers/cpufreq/Kconfig"
335
336 endmenu
337
338 source "net/Kconfig"
339
340 source "drivers/Kconfig"
341
342 source "fs/Kconfig"
343
344 source "arch/arm64/kvm/Kconfig"
345
346 source "arch/arm64/Kconfig.debug"
347
348 source "security/Kconfig"
349
350 source "crypto/Kconfig"
351 if CRYPTO
352 source "arch/arm64/crypto/Kconfig"
353 endif
354
355 source "lib/Kconfig"