diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-28 13:59:18 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-25 12:48:21 -0400 |
commit | 73636b1aacb1a07e6fbe0d25e560e69b024a8e25 (patch) | |
tree | 9531c202c6b3f67fba1cd7ac2b83fa32c31fe197 /mm/pgtable-generic.c | |
parent | 51007004f44c9588d70ffb77e1f52479bd5b0e37 (diff) |
arch/tile: allow building Linux with transparent huge pages enabled
The change adds some infrastructure for managing tile pmd's more generally,
using pte_pmd() and pmd_pte() methods to translate pmd values to and
from ptes, since on TILEPro a pmd is really just a nested structure
holding a pgd (aka pte). Several existing pmd methods are moved into
this framework, and a whole raft of additional pmd accessors are defined
that are used by the transparent hugepage framework.
The tile PTE now has a "client2" bit. The bit is used to indicate a
transparent huge page is in the process of being split into subpages.
This change also fixes a generic bug where the return value of the
generic pmdp_splitting_flush() was incorrect.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'mm/pgtable-generic.c')
-rw-r--r-- | mm/pgtable-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c index 5a74fea182f1..74c0ddaa6fa0 100644 --- a/mm/pgtable-generic.c +++ b/mm/pgtable-generic.c | |||
@@ -109,8 +109,8 @@ pmd_t pmdp_clear_flush(struct vm_area_struct *vma, unsigned long address, | |||
109 | 109 | ||
110 | #ifndef __HAVE_ARCH_PMDP_SPLITTING_FLUSH | 110 | #ifndef __HAVE_ARCH_PMDP_SPLITTING_FLUSH |
111 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 111 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
112 | pmd_t pmdp_splitting_flush(struct vm_area_struct *vma, unsigned long address, | 112 | void pmdp_splitting_flush(struct vm_area_struct *vma, unsigned long address, |
113 | pmd_t *pmdp) | 113 | pmd_t *pmdp) |
114 | { | 114 | { |
115 | pmd_t pmd = pmd_mksplitting(*pmdp); | 115 | pmd_t pmd = pmd_mksplitting(*pmdp); |
116 | VM_BUG_ON(address & ~HPAGE_PMD_MASK); | 116 | VM_BUG_ON(address & ~HPAGE_PMD_MASK); |