]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm64/mm/mmu.c
Merge branch 'cpuidle' into release
[karo-tx-linux.git] / arch / arm64 / mm / mmu.c
index a4ede4e2ddd1e7dfdca20594741e9e3d5f7f68dd..9211b8527f2580aeb561b8c7cc3cdc75f728571f 100644 (file)
@@ -267,7 +267,7 @@ static void *late_alloc(unsigned long size)
        return ptr;
 }
 
-static void __ref create_mapping(phys_addr_t phys, unsigned long virt,
+static void __init create_mapping(phys_addr_t phys, unsigned long virt,
                                  phys_addr_t size, pgprot_t prot)
 {
        if (virt < VMALLOC_START) {
@@ -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/).
  */