]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
powerpc/32s: Move early_mmu_init() into mmu.c
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 22 Oct 2020 06:29:41 +0000 (06:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Dec 2020 05:46:56 +0000 (16:46 +1100)
early_mmu_init() is independent of MMU type and not
directly linked to tlb handling.

In a following patch, tlb.c will be restricted to HASH mmu.

Move early_mmu_init() into mmu.c which is common.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e51b5e2fe6bca623b33116403043d3a1b5eaf826.1603348103.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s32/tlb.c

index 1e03607d7c7836f7a21a0656d1b51474bbdf5833..859e5bd603ac82fe39a9c8fe7ac63fd6eae5b718 100644 (file)
@@ -471,3 +471,7 @@ void __init setup_kuap(bool disabled)
                pr_warn("KUAP cannot be disabled yet on 6xx when compiled in\n");
 }
 #endif
+
+void __init early_init_mmu(void)
+{
+}
index 0d412953fe58b75839968440810dbe1d8b0edbd2..19f0ef950d77322d5d0be1ccf18c3820e6b4bcb1 100644 (file)
@@ -104,7 +104,3 @@ void hash__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr)
                flush_hash_pages(mm->context.id, vmaddr, pmd_val(*pmd), 1);
 }
 EXPORT_SYMBOL(hash__flush_tlb_page);
-
-void __init early_init_mmu(void)
-{
-}