arm64: merge __enable_mmu and __turn_mmu_on
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 17 Mar 2015 07:59:53 +0000 (08:59 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Mar 2015 19:46:02 +0000 (19:46 +0000)
commit8b0a95753a34b5c8b2e483e0e5b1d67761e32c5f
treeb94cad9ea7b18ad3b28b56d76c6fb6093a2bbd68
parentb1c98297fe0c6e2899ede03fc3b831f36e19fb76
arm64: merge __enable_mmu and __turn_mmu_on

Enabling of the MMU is split into two functions, with an align and
a branch in the middle. On arm64, the entire kernel Image is ID mapped
so this is really not necessary, and we can just merge it into a
single function.

Also replaces an open coded adrp/add reference to __enable_mmu pair
with adr_l.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/head.S