]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: add new arch_make_huge_pte() method for tile support
authorChris Metcalf <cmetcalf@tilera.com>
Sun, 1 Apr 2012 18:01:34 +0000 (14:01 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 25 Apr 2012 15:46:33 +0000 (11:46 -0400)
commite436b12df40c5d630866f99ee99e23ddabe6769a
tree66a7dc002d994fddcc11c25fa64f1029a5da2c15
parent9db40f9bb4792b8b4e20365989f0f496f0fb1d10
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>
include/linux/hugetlb.h
mm/hugetlb.c