]> Pileus Git - ~andy/linux/blob - arch/metag/Kconfig
metag: ftrace support
[~andy/linux] / arch / metag / Kconfig
1 config SYMBOL_PREFIX
2         string
3         default "_"
4
5 config METAG
6         def_bool y
7         select EMBEDDED
8         select GENERIC_ATOMIC64
9         select GENERIC_CLOCKEVENTS
10         select GENERIC_IRQ_SHOW
11         select GENERIC_SIGALTSTACK
12         select GENERIC_SMP_IDLE_THREAD
13         select HAVE_64BIT_ALIGNED_ACCESS
14         select HAVE_ARCH_TRACEHOOK
15         select HAVE_C_RECORDMCOUNT
16         select HAVE_DEBUG_KMEMLEAK
17         select HAVE_DYNAMIC_FTRACE
18         select HAVE_FTRACE_MCOUNT_RECORD
19         select HAVE_FUNCTION_TRACER
20         select HAVE_FUNCTION_TRACE_MCOUNT_TEST
21         select HAVE_GENERIC_HARDIRQS
22         select HAVE_IRQ_WORK
23         select HAVE_KERNEL_BZIP2
24         select HAVE_KERNEL_GZIP
25         select HAVE_KERNEL_LZO
26         select HAVE_KERNEL_XZ
27         select HAVE_MEMBLOCK
28         select HAVE_MEMBLOCK_NODE_MAP
29         select HAVE_MOD_ARCH_SPECIFIC
30         select HAVE_PERF_EVENTS
31         select HAVE_SYSCALL_TRACEPOINTS
32         select IRQ_DOMAIN
33         select MODULES_USE_ELF_RELA
34         select OF
35         select OF_EARLY_FLATTREE
36         select SPARSE_IRQ
37
38 config ARCH_NO_VIRT_TO_BUS
39         def_bool y
40
41 config STACKTRACE_SUPPORT
42         def_bool y
43
44 config LOCKDEP_SUPPORT
45         def_bool y
46
47 config HAVE_LATENCYTOP_SUPPORT
48         def_bool y
49
50 config RWSEM_GENERIC_SPINLOCK
51         def_bool y
52
53 config RWSEM_XCHGADD_ALGORITHM
54         bool
55
56 config GENERIC_HWEIGHT
57         def_bool y
58
59 config GENERIC_CALIBRATE_DELAY
60         def_bool y
61
62 config GENERIC_GPIO
63         def_bool n
64
65 config NO_IOPORT
66         def_bool y
67
68 source "init/Kconfig"
69
70 source "kernel/Kconfig.freezer"
71
72 menu "Processor type and features"
73
74 config MMU
75         def_bool y
76
77 config STACK_GROWSUP
78         def_bool y
79
80 config HOTPLUG_CPU
81         bool "Enable CPU hotplug support"
82         depends on SMP
83         help
84           Say Y here to allow turning CPUs off and on. CPUs can be
85           controlled through /sys/devices/system/cpu.
86
87           Say N if you want to disable CPU hotplug.
88
89 config HIGHMEM
90         bool "High Memory Support"
91         help
92           The address space of Meta processors is only 4 Gigabytes large
93           and it has to accommodate user address space, kernel address
94           space as well as some memory mapped IO. That means that, if you
95           have a large amount of physical memory and/or IO, not all of the
96           memory can be "permanently mapped" by the kernel. The physical
97           memory that is not permanently mapped is called "high memory".
98
99           Depending on the selected kernel/user memory split, minimum
100           vmalloc space and actual amount of RAM, you may not need this
101           option which should result in a slightly faster kernel.
102
103           If unsure, say n.
104
105 source "arch/metag/mm/Kconfig"
106
107 source "arch/metag/Kconfig.soc"
108
109 config METAG_META12
110         bool
111         help
112           Select this from the SoC config symbol to indicate that it contains a
113           Meta 1.2 core.
114
115 config METAG_META21
116         bool
117         help
118           Select this from the SoC config symbol to indicate that it contains a
119           Meta 2.1 core.
120
121 config SMP
122         bool "Symmetric multi-processing support"
123         depends on METAG_META21 && METAG_META21_MMU
124         select USE_GENERIC_SMP_HELPERS
125         help
126           This enables support for systems with more than one thread running
127           Linux. If you have a system with only one thread running Linux,
128           say N. Otherwise, say Y.
129
130 config NR_CPUS
131         int "Maximum number of CPUs (2-4)" if SMP
132         range 2 4 if SMP
133         default "1" if !SMP
134         default "4" if SMP
135
136 config METAG_SMP_WRITE_REORDERING
137         bool
138         help
139           This attempts to prevent cache-memory incoherence due to external
140           reordering of writes from different hardware threads when SMP is
141           enabled. It adds fences (system event 0) to smp_mb and smp_rmb in an
142           attempt to catch some of the cases, and also before writes to shared
143           memory in LOCK1 protected atomics and spinlocks.
144           This will not completely prevent cache incoherency on affected cores.
145
146 config METAG_LNKGET_AROUND_CACHE
147         bool
148         depends on METAG_META21
149         help
150           This indicates that the LNKGET/LNKSET instructions go around the
151           cache, which requires some extra cache flushes when the memory needs
152           to be accessed by normal GET/SET instructions too.
153
154 choice
155         prompt "Atomicity primitive"
156         default METAG_ATOMICITY_LNKGET
157         help
158           This option selects the mechanism for performing atomic operations.
159
160 config METAG_ATOMICITY_IRQSOFF
161         depends on !SMP
162         bool "irqsoff"
163         help
164           This option disables interrupts to achieve atomicity. This mechanism
165           is not SMP-safe.
166
167 config METAG_ATOMICITY_LNKGET
168         depends on METAG_META21
169         bool "lnkget/lnkset"
170         help
171           This option uses the LNKGET and LNKSET instructions to achieve
172           atomicity. LNKGET/LNKSET are load-link/store-conditional instructions.
173           Choose this option if your system requires low latency.
174
175 config METAG_ATOMICITY_LOCK1
176         depends on SMP
177         bool "lock1"
178         help
179           This option uses the LOCK1 instruction for atomicity. This is mainly
180           provided as a debugging aid if the lnkget/lnkset atomicity primitive
181           isn't working properly.
182
183 endchoice
184
185 config METAG_FPU
186         bool "FPU Support"
187         depends on METAG_META21
188         default y
189         help
190           This option allows processes to use FPU hardware available with this
191           CPU. If this option is not enabled FPU registers will not be saved
192           and restored on context-switch.
193
194           If you plan on running programs which are compiled to use hard floats
195           say Y here.
196
197 config METAG_DSP
198         bool "DSP Support"
199         help
200           This option allows processes to use DSP hardware available
201           with this CPU. If this option is not enabled DSP registers
202           will not be saved and restored on context-switch.
203
204           If you plan on running DSP programs say Y here.
205
206 config METAG_PERFCOUNTER_IRQS
207         bool "PerfCounters interrupt support"
208         depends on METAG_META21
209         help
210           This option enables using interrupts to collect information from
211           Performance Counters. This option is supported in new META21
212           (starting from HTP265).
213
214           When disabled, Performance Counters information will be collected
215           based on Timer Interrupt.
216
217 menu "Boot options"
218
219 config METAG_BUILTIN_DTB
220         bool "Embed DTB in kernel image"
221         default y
222         help
223           Embeds a device tree binary in the kernel image.
224
225 config METAG_BUILTIN_DTB_NAME
226         string "Built in DTB"
227         depends on METAG_BUILTIN_DTB
228         help
229           Set the name of the DTB to embed (leave blank to pick one
230           automatically based on kernel configuration).
231
232 config CMDLINE_BOOL
233         bool "Default bootloader kernel arguments"
234
235 config CMDLINE
236         string "Kernel command line"
237         depends on CMDLINE_BOOL
238         help
239           On some architectures there is currently no way for the boot loader
240           to pass arguments to the kernel. For these architectures, you should
241           supply some command-line options at build time by entering them
242           here.
243
244 config CMDLINE_FORCE
245         bool "Force default kernel command string"
246         depends on CMDLINE_BOOL
247         help
248           Set this to have arguments from the default kernel command string
249           override those passed by the boot loader.
250
251 endmenu
252
253 source "kernel/Kconfig.preempt"
254
255 source kernel/Kconfig.hz
256
257 endmenu
258
259 menu "Power management options"
260
261 source kernel/power/Kconfig
262
263 endmenu
264
265 menu "Executable file formats"
266
267 source "fs/Kconfig.binfmt"
268
269 endmenu
270
271 source "net/Kconfig"
272
273 source "drivers/Kconfig"
274
275 source "fs/Kconfig"
276
277 source "arch/metag/Kconfig.debug"
278
279 source "security/Kconfig"
280
281 source "crypto/Kconfig"
282
283 source "lib/Kconfig"