]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: move !VHE work to end of el2_setup
authorMark Rutland <mark.rutland@arm.com>
Wed, 15 Feb 2017 14:54:17 +0000 (14:54 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 22 Mar 2017 17:21:38 +0000 (17:21 +0000)
commita5d64f6eddaea03405eb5a5df50a5be254be949a
treef256b3718db37b886b7094b483067a5bb59c69c6
parent8194b39fd4859c581be828fd17a0338d9cf12f5a
arm64: move !VHE work to end of el2_setup

We only need to initialise sctlr_el1 if we're installing an EL2 stub, so
we may as well defer this until we're doing so. Similarly, we can defer
intialising CPTR_EL2 until then, as we do not access any trapped
functionality as part of el2_setup.

This patch modified el2_setup accordingly, allowing us to remove a
branch and simplify the code flow.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S