diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-08 04:54:16 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:39 -0500 |
commit | a09063da33a222adaceea85c9d168cbbb3e626b0 (patch) | |
tree | 93e836e3b3927439ff960f02e4ee670d8d40d37a | |
parent | c20c20047b1aa4ba6fc2bb4e9ab91402026c3e71 (diff) |
sh: Switch Kconfig.sh64 to use arch/sh/mm/Kconfig.
Consolidates the HUGETLB definitions and others.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/Kconfig.sh64 | 25 | ||||
-rw-r--r-- | arch/sh/mm/Kconfig | 10 |
2 files changed, 14 insertions, 21 deletions
diff --git a/arch/sh/Kconfig.sh64 b/arch/sh/Kconfig.sh64 index 6884d5a518ad..20db5e0c1401 100644 --- a/arch/sh/Kconfig.sh64 +++ b/arch/sh/Kconfig.sh64 | |||
@@ -131,22 +131,6 @@ config SH64_PGTABLE_3_LEVEL | |||
131 | 131 | ||
132 | endchoice | 132 | endchoice |
133 | 133 | ||
134 | choice | ||
135 | prompt "HugeTLB page size" | ||
136 | depends on HUGETLB_PAGE && MMU | ||
137 | default HUGETLB_PAGE_SIZE_64K | ||
138 | |||
139 | config HUGETLB_PAGE_SIZE_64K | ||
140 | bool "64K" | ||
141 | |||
142 | config HUGETLB_PAGE_SIZE_1MB | ||
143 | bool "1MB" | ||
144 | |||
145 | config HUGETLB_PAGE_SIZE_512MB | ||
146 | bool "512MB" | ||
147 | |||
148 | endchoice | ||
149 | |||
150 | config SH64_USER_MISALIGNED_FIXUP | 134 | config SH64_USER_MISALIGNED_FIXUP |
151 | bool "Fixup misaligned loads/stores occurring in user mode" | 135 | bool "Fixup misaligned loads/stores occurring in user mode" |
152 | 136 | ||
@@ -226,7 +210,12 @@ config PREEMPT | |||
226 | bool "Preemptible Kernel (EXPERIMENTAL)" | 210 | bool "Preemptible Kernel (EXPERIMENTAL)" |
227 | depends on EXPERIMENTAL | 211 | depends on EXPERIMENTAL |
228 | 212 | ||
229 | source "mm/Kconfig" | 213 | config SH_PCLK_FREQ |
214 | int "Peripheral clock frequency (in Hz)" | ||
215 | default "50000000" | ||
216 | |||
217 | source "kernel/Kconfig.hz" | ||
218 | source "arch/sh/mm/Kconfig" | ||
230 | 219 | ||
231 | endmenu | 220 | endmenu |
232 | 221 | ||
@@ -286,7 +275,7 @@ source "fs/Kconfig" | |||
286 | 275 | ||
287 | source "kernel/Kconfig.instrumentation" | 276 | source "kernel/Kconfig.instrumentation" |
288 | 277 | ||
289 | source "arch/sh64/Kconfig.debug" | 278 | source "arch/sh/Kconfig.debug" |
290 | 279 | ||
291 | source "security/Kconfig" | 280 | source "security/Kconfig" |
292 | 281 | ||
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 998c5c86346f..a7bbc2cbbf8c 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -66,7 +66,7 @@ config X2TLB | |||
66 | 66 | ||
67 | config VSYSCALL | 67 | config VSYSCALL |
68 | bool "Support vsyscall page" | 68 | bool "Support vsyscall page" |
69 | depends on MMU | 69 | depends on MMU && (CPU_SH3 || CPU_SH4) |
70 | default y | 70 | default y |
71 | help | 71 | help |
72 | This will enable support for the kernel mapping a vDSO page | 72 | This will enable support for the kernel mapping a vDSO page |
@@ -175,6 +175,10 @@ config HUGETLB_PAGE_SIZE_64MB | |||
175 | bool "64MB" | 175 | bool "64MB" |
176 | depends on X2TLB | 176 | depends on X2TLB |
177 | 177 | ||
178 | config HUGETLB_PAGE_SIZE_512MB | ||
179 | bool "512MB" | ||
180 | depends on CPU_SH5 | ||
181 | |||
178 | endchoice | 182 | endchoice |
179 | 183 | ||
180 | source "mm/Kconfig" | 184 | source "mm/Kconfig" |
@@ -202,12 +206,12 @@ config SH_DIRECT_MAPPED | |||
202 | 206 | ||
203 | choice | 207 | choice |
204 | prompt "Cache mode" | 208 | prompt "Cache mode" |
205 | default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4 | 209 | default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4 || CPU_SH5 |
206 | default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A) | 210 | default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A) |
207 | 211 | ||
208 | config CACHE_WRITEBACK | 212 | config CACHE_WRITEBACK |
209 | bool "Write-back" | 213 | bool "Write-back" |
210 | depends on CPU_SH2A || CPU_SH3 || CPU_SH4 | 214 | depends on CPU_SH2A || CPU_SH3 || CPU_SH4 || CPU_SH5 |
211 | 215 | ||
212 | config CACHE_WRITETHROUGH | 216 | config CACHE_WRITETHROUGH |
213 | bool "Write-through" | 217 | bool "Write-through" |