arm64: unify idmap removal
authorMark Rutland <[email protected]>
Mon, 25 Jan 2016 11:44:58 +0000 (11:44 +0000)
committerCatalin Marinas <[email protected]>
Tue, 16 Feb 2016 15:10:44 +0000 (15:10 +0000)
commit9e8e865bbe294a69666a1996bda3e87825b258c0
tree7db1b6aab086829a70608ca1895c2b66fb5697e4
parent5227cfa71f9e8574373f4d0e9e754942d76cdf67
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 <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Tested-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Tested-by: Jeremy Linton <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
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