arm64: remove dead code
authorMark Salter <msalter@redhat.com>
Thu, 16 Jul 2015 17:58:53 +0000 (18:58 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:39 +0000 (11:08 +0100)
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>
arch/arm64/include/asm/mmu.h
arch/arm64/mm/mmu.c

index 79fcfb048884401ef7a2082e9079324fe8396ceb..030208767185bd56edce4b01e9d5aa91c08c3058 100644 (file)
@@ -28,7 +28,6 @@ typedef struct {
 #define ASID(mm)       ((mm)->context.id & 0xffff)
 
 extern void paging_init(void);
-extern void setup_mm_for_reboot(void);
 extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
 extern void init_mem_pgprot(void);
 extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
index a4ede4e2ddd1e7dfdca20594741e9e3d5f7f68dd..63012fed46fc04ce0eecb48791ec82e46f4ef101 100644 (file)
@@ -460,17 +460,6 @@ void __init paging_init(void)
        cpu_set_default_tcr_t0sz();
 }
 
-/*
- * 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/).
  */