Skip to content

Commit b08d464

Browse files
mosalterwildea01
authored andcommitted
arm64: remove dead code
Commit 68234df ("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 <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent cba3574 commit b08d464

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

arch/arm64/include/asm/mmu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ typedef struct {
2828
#define ASID(mm) ((mm)->context.id & 0xffff)
2929

3030
extern void paging_init(void);
31-
extern void setup_mm_for_reboot(void);
3231
extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
3332
extern void init_mem_pgprot(void);
3433
extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,

arch/arm64/mm/mmu.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,6 @@ void __init paging_init(void)
460460
cpu_set_default_tcr_t0sz();
461461
}
462462

463-
/*
464-
* Enable the identity mapping to allow the MMU disabling.
465-
*/
466-
void setup_mm_for_reboot(void)
467-
{
468-
cpu_set_reserved_ttbr0();
469-
flush_tlb_all();
470-
cpu_set_idmap_tcr_t0sz();
471-
cpu_switch_mm(idmap_pg_dir, &init_mm);
472-
}
473-
474463
/*
475464
* Check whether a kernel address is valid (derived from arch/x86/).
476465
*/

0 commit comments

Comments
 (0)