diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-01 20:01:34 +0200 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-25 18:48:26 +0200 |
commit | d9ed9faac283a3be73f0e11a2ef49ee55aece4db (patch) | |
tree | 49ec312cc1a066d23d602838d58a1723ec9331e8 /mm/hugetlb.c | |
parent | arch/tile: support kexec() for tilegx (diff) | |
download | linux-d9ed9faac283a3be73f0e11a2ef49ee55aece4db.tar.xz linux-d9ed9faac283a3be73f0e11a2ef49ee55aece4db.zip |
mm: add new arch_make_huge_pte() method for tile support
The tile support for multiple-size huge pages requires tagging
the hugetlb PTE with a "super" bit for PTEs that are multiples of
the basic size of a pagetable span. To set that bit properly
we need to tweak the PTe in make_huge_pte() based on the vma.
This change provides the API for a subsequent tile-specific
change to use.
Reviewed-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ae8f708e3d75..4e28416c47fb 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2213,6 +2213,7 @@ static pte_t make_huge_pte(struct vm_area_struct *vma, struct page *page, } entry = pte_mkyoung(entry); entry = pte_mkhuge(entry); + entry = arch_make_huge_pte(entry, vma, page, writable); return entry; } |