[PATCH] arm64/mm: Redefine CONT_{PTE, PMD}_SHIFT

Catalin Marinas catalin.marinas at arm.com
Fri Jul 3 13:15:15 EDT 2020


On Tue, 30 Jun 2020 16:24:28 +1000, Gavin Shan wrote:
> Currently, the value of CONT_{PTE, PMD}_SHIFT is off from standard
> {PAGE, PMD}_SHIFT. In turn, we have to consider adding {PAGE, PMD}_SHIFT
> when using CONT_{PTE, PMD}_SHIFT in the function hugetlbpage_init().
> It's a bit confusing.
> 
> This redefines CONT_{PTE, PMD}_SHIFT with {PAGE, PMD}_SHIFT included
> so that the later values needn't be added when using the former ones
> in function hugetlbpage_init(). Note that the values of CONT_{PTES, PMDS}
> are unchanged.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/mm: Redefine CONT_{PTE, PMD}_SHIFT
      https://git.kernel.org/arm64/c/a1634a542f74

-- 
Catalin




More information about the linux-arm-kernel mailing list