arm64: Replace hard-coded values in the pmd/pud_bad() macros
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 5 May 2016 09:44:01 +0000 (10:44 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 6 May 2016 11:46:53 +0000 (12:46 +0100)
commitab4db1f2244dfc5ecd7adf9927c29cd654cc14c6
treececbda5d7d634e3f65ee35d24cf7335a32a0cd73
parent282aa7051b0169991b34716f0f22d9c2f59c46c4
arm64: Replace hard-coded values in the pmd/pud_bad() macros

This patch replaces the hard-coded value 2 with PMD_TABLE_BIT in the
pmd/pud_bad() macros. Note that using these macros on pmd_trans_huge()
entries is giving incorrect results
(pmd_none_or_trans_huge_or_clear_bad() correctly checks for
pmd_trans_huge before pmd_bad).

Additionally, white-space clean-up for pmd_mkclean().

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/pgtable.h