| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | MIPS: Add dependencies for HAVE_ARCH_TRANSPARENT_HUGEPAGE |
| From: | Ben Hutchings <ben@decadent.org.uk> |
| Date: | Mon, 04 Mar 2013 04:17:21 +0000 |
| Cc: | linux-mips@linux-mips.org, David Daney <david.daney@cavium.com> |
| In-reply-to: | <1362257499.3768.141.camel@deadeye.wl.decadent.org.uk> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1362257499.3768.141.camel@deadeye.wl.decadent.org.uk> |
| Sender: | linux-mips-bounce@linux-mips.org |
The MIPS implementation of transparent huge-pages (THP) is 64-bit only,
and of course also requires that the CPU supports huge-pages.
Currently it's entirely possible to enable THP in other configurations,
which then fail to build due to pfn_pmd() not being defined.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: David Daney <david.daney@cavium.com>
---
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -19,7 +19,7 @@ config MIPS
select HAVE_KRETPROBES
select HAVE_DEBUG_KMEMLEAK
select ARCH_BINFMT_ELF_RANDOMIZE_PIE
- select HAVE_ARCH_TRANSPARENT_HUGEPAGE
+ select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT
select RTC_LIB if !MACH_LOONGSON
select GENERIC_ATOMIC64 if !64BIT
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [RFD] Memory Corruption of CPU Hotplug on MIPS (Loongson-3), Huacai Chen |
|---|---|
| Next by Date: | [PATCH RFC] MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem, Huacai Chen |
| Previous by Thread: | THP broken on MIPS-32 [3.8], Ben Hutchings |
| Next by Thread: | Re: MIPS: Add dependencies for HAVE_ARCH_TRANSPARENT_HUGEPAGE, David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |