summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/mmu.c
diff options
context:
space:
mode:
authorMark Salter2015-07-16 19:58:53 +0200
committerWill Deacon2015-07-27 12:08:39 +0200
commitb08d4640a3dca68670fc5af2fe9205b395a02388 (patch)
tree52766524883d84ad07b560df41a09c22ef22c008 /arch/arm64/mm/mmu.c
parentarm64: move update_mmu_cache() into asm/pgtable.h (diff)
downloadkernel-qcow2-linux-b08d4640a3dca68670fc5af2fe9205b395a02388.tar.gz
kernel-qcow2-linux-b08d4640a3dca68670fc5af2fe9205b395a02388.tar.xz
kernel-qcow2-linux-b08d4640a3dca68670fc5af2fe9205b395a02388.zip
arm64: remove dead code
Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed soft_reset() from the kernel. This was the only caller of setup_mm_for_reboot(), so remove that also. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/mmu.c')
-rw-r--r--arch/arm64/mm/mmu.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index a4ede4e2ddd1..63012fed46fc 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -461,17 +461,6 @@ void __init paging_init(void)
}
/*
- * Enable the identity mapping to allow the MMU disabling.
- */
-void setup_mm_for_reboot(void)
-{
- cpu_set_reserved_ttbr0();
- flush_tlb_all();
- cpu_set_idmap_tcr_t0sz();
- cpu_switch_mm(idmap_pg_dir, &init_mm);
-}
-
-/*
* Check whether a kernel address is valid (derived from arch/x86/).
*/
int kern_addr_valid(unsigned long addr)