]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a2ba41c6af2876a26d49acf242c70c8ce8615a8
treececbda5d7d634e3f65ee35d24cf7335a32a0cd73
parent3bab968f42bc2fdb5eadbfdb603a34c7eb3ad7fb
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