X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=arch%2Farm64%2Fmm%2Fmmu.c;h=9211b8527f2580aeb561b8c7cc3cdc75f728571f;hb=e4b35f952be9f5706b22e38c1925b7ac49080d72;hp=a4ede4e2ddd1e7dfdca20594741e9e3d5f7f68dd;hpb=3d3e66ba2ced6c5ba7d960f106ba2d3a4444c4ab;p=karo-tx-linux.git diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index a4ede4e2ddd1..9211b8527f25 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -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/). */