]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: consistently use p?d_set_huge
authorMark Rutland <mark.rutland@arm.com>
Tue, 22 Mar 2016 10:11:45 +0000 (10:11 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 24 Mar 2016 16:32:29 +0000 (16:32 +0000)
commitf6f14b64fd06ca307714fdb37d7332a6b1d15708
treee4c6a6b752fa1a74019f0fa9d56a8b360ec296fc
parentb0f4a9a70edfaae7485e40671b4a0af2cc0c965e
arm64: consistently use p?d_set_huge

Commit 44cbdfd83dd36b69 ("arm64: add support for ioremap() block
mappings") added new p?d_set_huge functions which do the hard work to
generate and set a correct block entry.

These differ from open-coded huge page creation in the early page table
code by explicitly setting the P?D_TYPE_SECT bits (which are implicitly
retained by mk_sect_prot() for any valid prot), but are otherwise
identical (and cannot fail on arm64).

For simplicity and consistency, make use of these in the initial page
table creation code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c