Commit b08d4640 authored by Mark Salter's avatar Mark Salter Committed by Will Deacon
Browse files

arm64: remove dead code

Commit 68234df4

 ("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: default avatarMark Salter <>
Signed-off-by: default avatarWill Deacon <>
parent cba3574f
......@@ -28,7 +28,6 @@ typedef struct {
#define ASID(mm) ((mm)-> & 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,
......@@ -460,17 +460,6 @@ void __init paging_init(void)
* Enable the identity mapping to allow the MMU disabling.
void setup_mm_for_reboot(void)
cpu_switch_mm(idmap_pg_dir, &init_mm);
* Check whether a kernel address is valid (derived from arch/x86/).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment