arm64: mm: Route pmd thp functions through pte equivalents
authorSteve Capper <steve.capper@linaro.org>
Tue, 25 Feb 2014 10:02:13 +0000 (10:02 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 24 Oct 2014 10:54:33 +0000 (11:54 +0100)
commitae635c76a615535a1c080f5e1e49b8c3a032c1cd
tree350bcd13d19e1e5749b1ba7727a60259aa179178
parent86c43586aba61471730a5d3ae7138057b0e161c4
arm64: mm: Route pmd thp functions through pte equivalents

Rather than have separate hugetlb and transparent huge page pmd
manipulation functions, re-wire our thp functions to simply call the
pte equivalents.

This allows THP to take advantage of the new PTE_WRITE logic introduced
in:
  c2c93e5 arm64: mm: Introduce PTE_WRITE

To represent splitting THPs we use the PTE_SPECIAL bit as this is not
used for pmds.

Signed-off-by: Steve Capper <steve.capper@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 9c7e535fcc1725fc2e2d4f0d9dd14137f0243e23)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/include/asm/pgtable.h