]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/mm: Add mmu_early_init_devtree()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Jul 2016 10:09:30 +0000 (20:09 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:14:53 +0000 (11:14 +1000)
Empty for now, but we'll add to it in the next patch.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/kernel/prom.c
arch/powerpc/mm/init_64.c

index d4eda6420523fe9ed5cd4d0bbb7a64ac19c45b7a..4eb4bd019716ff84928235a458462ea207b789fc 100644 (file)
@@ -107,6 +107,7 @@ extern int mmu_vmemmap_psize;
 extern int mmu_io_psize;
 
 /* MMU initialization */
+void mmu_early_init_devtree(void);
 extern void radix_init_native(void);
 extern void hash__early_init_mmu(void);
 extern void radix__early_init_mmu(void);
index 54471228f7b8f5c3517b59ab9e7e46a54644442d..14220c5c12c97dd977c3f1ecb46255c8cb60a045 100644 (file)
@@ -210,6 +210,7 @@ extern void early_init_mmu(void);
 extern void early_init_mmu_secondary(void);
 extern void setup_initial_memory_limit(phys_addr_t first_memblock_base,
                                       phys_addr_t first_memblock_size);
+static inline void mmu_early_init_devtree(void) { }
 #endif /* __ASSEMBLY__ */
 #endif
 
index bae3db791150157b2374ab0f27bed0bc371494cd..9686984e79c492568e6e639a8558cae95433f6d9 100644 (file)
@@ -750,6 +750,8 @@ void __init early_init_devtree(void *params)
        if (disable_radix)
                cur_cpu_spec->mmu_features &= ~MMU_FTR_RADIX;
 
+       mmu_early_init_devtree();
+
 #ifdef CONFIG_PPC_POWERNV
        /* Scan and build the list of machine check recoverable ranges */
        of_scan_flat_dt(early_init_dt_scan_recoverable_ranges, NULL);
index 33709bdb04196ae3dfac4cb3f7463db2210a3449..d0fb33ac3db2165a5f80b10082f5fd95e0349804 100644 (file)
@@ -411,3 +411,9 @@ struct page *realmode_pfn_to_page(unsigned long pfn)
 EXPORT_SYMBOL_GPL(realmode_pfn_to_page);
 
 #endif /* CONFIG_SPARSEMEM_VMEMMAP/CONFIG_FLATMEM */
+
+#ifdef CONFIG_PPC_STD_MMU_64
+void __init mmu_early_init_devtree(void)
+{
+}
+#endif /* CONFIG_PPC_STD_MMU_64 */