arm64: unify idmap removal
authorMark Rutland <mark.rutland@arm.com>
Mon, 25 Jan 2016 11:44:58 +0000 (11:44 +0000)
committerAlex Shi <alex.shi@linaro.org>
Thu, 20 Oct 2016 08:23:48 +0000 (16:23 +0800)
commit530067f9965d8fbc91135613ce7f9cf948d029b4
tree30002d3ae60b9bd39fdf439ff0f84b1fa552c7d6
parent82e12e68cb9f5df9b99ed552202f28934420da5d
arm64: unify idmap removal

We currently open-code the removal of the idmap and restoration of the
current task's MMU state in a few places.

Before introducing yet more copies of this sequence, unify these to call
a new helper, cpu_uninstall_idmap.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Laura Abbott <labbott@fedoraproject.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 9e8e865bbe294a69666a1996bda3e87825b258c0)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/mmu_context.h
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c
arch/arm64/kernel/suspend.c
arch/arm64/mm/mmu.c