]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm: remove pointless map/unmap sequences when creating page tables
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 9 Mar 2017 20:52:08 +0000 (21:52 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 23 Mar 2017 14:09:12 +0000 (14:09 +0000)
commit7aede62f7e5e6e176e8732794863d947c9f50add
tree9d311b857d4628017e1cb90422b02dd969105a02
parentb27e1818aa3140fdaee9173635ed0d014ab31449
arm64/mm: remove pointless map/unmap sequences when creating page tables

The routines __pud_populate and __pmd_populate only create a table
entry at their respective level which refers to the next level page
by its physical address, so there is no reason to map this page and
then unmap it immediately after.

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