diff options
author | Gavin Shan <gshan@redhat.com> | 2020-06-30 16:24:28 +1000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2020-07-03 17:49:58 +0100 |
commit | a1634a542f74309f843742fa849208bb26e279e4 (patch) | |
tree | 54d045171d27a23e6101da244631169cc28c3aa2 /mm/ptdump.c | |
parent | 2a379716f3d76aebc5574155de247b547a0214cc (diff) | |
download | linux-a1634a542f74309f843742fa849208bb26e279e4.tar.bz2 |
arm64/mm: Redefine CONT_{PTE, PMD}_SHIFT
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.
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lkml.org/lkml/2020/5/6/190
Link: https://lore.kernel.org/r/20200630062428.194235-1-gshan@redhat.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'mm/ptdump.c')
0 files changed, 0 insertions, 0 deletions