diff options
Diffstat (limited to 'arch/tile/Kconfig')
-rw-r--r-- | arch/tile/Kconfig | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index 74239dd77e06..fe128816c448 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig | |||
@@ -14,6 +14,7 @@ config TILE | |||
14 | select HAVE_SYSCALL_WRAPPERS if TILEGX | 14 | select HAVE_SYSCALL_WRAPPERS if TILEGX |
15 | select SYS_HYPERVISOR | 15 | select SYS_HYPERVISOR |
16 | select ARCH_HAVE_NMI_SAFE_CMPXCHG | 16 | select ARCH_HAVE_NMI_SAFE_CMPXCHG |
17 | select GENERIC_CLOCKEVENTS | ||
17 | 18 | ||
18 | # FIXME: investigate whether we need/want these options. | 19 | # FIXME: investigate whether we need/want these options. |
19 | # select HAVE_IOREMAP_PROT | 20 | # select HAVE_IOREMAP_PROT |
@@ -47,7 +48,12 @@ config NEED_PER_CPU_PAGE_FIRST_CHUNK | |||
47 | config SYS_SUPPORTS_HUGETLBFS | 48 | config SYS_SUPPORTS_HUGETLBFS |
48 | def_bool y | 49 | def_bool y |
49 | 50 | ||
50 | config GENERIC_CLOCKEVENTS | 51 | # Support for additional huge page sizes besides HPAGE_SIZE. |
52 | # The software support is currently only present in the TILE-Gx | ||
53 | # hypervisor. TILEPro in any case does not support page sizes | ||
54 | # larger than the default HPAGE_SIZE. | ||
55 | config HUGETLB_SUPER_PAGES | ||
56 | depends on HUGETLB_PAGE && TILEGX | ||
51 | def_bool y | 57 | def_bool y |
52 | 58 | ||
53 | # FIXME: tilegx can implement a more efficient rwsem. | 59 | # FIXME: tilegx can implement a more efficient rwsem. |
@@ -109,16 +115,14 @@ config HVC_TILE | |||
109 | select HVC_DRIVER | 115 | select HVC_DRIVER |
110 | def_bool y | 116 | def_bool y |
111 | 117 | ||
112 | # Please note: TILE-Gx support is not yet finalized; this is | ||
113 | # the preliminary support. TILE-Gx drivers are only provided | ||
114 | # with the alpha or beta test versions for Tilera customers. | ||
115 | config TILEGX | 118 | config TILEGX |
116 | depends on EXPERIMENTAL | ||
117 | bool "Building with TILE-Gx (64-bit) compiler and toolchain" | 119 | bool "Building with TILE-Gx (64-bit) compiler and toolchain" |
118 | 120 | ||
121 | config TILEPRO | ||
122 | def_bool !TILEGX | ||
123 | |||
119 | config 64BIT | 124 | config 64BIT |
120 | depends on TILEGX | 125 | def_bool TILEGX |
121 | def_bool y | ||
122 | 126 | ||
123 | config ARCH_DEFCONFIG | 127 | config ARCH_DEFCONFIG |
124 | string | 128 | string |
@@ -139,7 +143,30 @@ config NR_CPUS | |||
139 | smaller kernel memory footprint results from using a smaller | 143 | smaller kernel memory footprint results from using a smaller |
140 | value on chips with fewer tiles. | 144 | value on chips with fewer tiles. |
141 | 145 | ||
142 | source "kernel/time/Kconfig" | 146 | if TILEGX |
147 | |||
148 | choice | ||
149 | prompt "Kernel page size" | ||
150 | default PAGE_SIZE_64KB | ||
151 | help | ||
152 | This lets you select the page size of the kernel. For best | ||
153 | performance on memory-intensive applications, a page size of 64KB | ||
154 | is recommended. For workloads involving many small files, many | ||
155 | connections, etc., it may be better to select 16KB, which uses | ||
156 | memory more efficiently at some cost in TLB performance. | ||
157 | |||
158 | Note that this option is TILE-Gx specific; currently | ||
159 | TILEPro page size is set by rebuilding the hypervisor. | ||
160 | |||
161 | config PAGE_SIZE_16KB | ||
162 | bool "16KB" | ||
163 | |||
164 | config PAGE_SIZE_64KB | ||
165 | bool "64KB" | ||
166 | |||
167 | endchoice | ||
168 | |||
169 | endif | ||
143 | 170 | ||
144 | source "kernel/Kconfig.hz" | 171 | source "kernel/Kconfig.hz" |
145 | 172 | ||