@@ -257,7 +257,7 @@ GLOBAL(init_secondary)
secondary_switched:
/*
* Non-boot CPUs need to move on to the proper pagetables, which were
- * setup in init_secondary_pagetables.
+ * setup in prepare_secondary_mm.
*
* XXX: This is not compliant with the Arm Arm.
*/
@@ -209,9 +209,11 @@ extern void setup_pagetables(unsigned long boot_phys_offset);
extern void *early_fdt_map(paddr_t fdt_paddr);
/* Remove early mappings */
extern void remove_early_mappings(void);
-/* Allocate and initialise pagetables for a secondary CPU. Sets init_ttbr to the
- * new page table */
-extern int init_secondary_pagetables(int cpu);
+/*
+ * Allocate and initialise pagetables for a secondary CPU.
+ * Sets init_ttbr to the new page table.
+ */
+extern int prepare_secondary_mm(int cpu);
/* Map a frame table to cover physical addresses ps through pe */
extern void setup_frametable_mappings(paddr_t ps, paddr_t pe);
/* map a physical range in virtual memory */
@@ -64,7 +64,7 @@ static void clear_boot_pagetables(void)
}
#ifdef CONFIG_ARM_64
-int init_secondary_pagetables(int cpu)
+int prepare_secondary_mm(int cpu)
{
clear_boot_pagetables();
@@ -77,7 +77,7 @@ int init_secondary_pagetables(int cpu)
return 0;
}
#else
-int init_secondary_pagetables(int cpu)
+int prepare_secondary_mm(int cpu)
{
lpae_t *first;
@@ -446,7 +446,7 @@ int __cpu_up(unsigned int cpu)
printk("Bringing up CPU%d\n", cpu);
- rc = init_secondary_pagetables(cpu);
+ rc = prepare_secondary_mm(cpu);
if ( rc < 0 )
return rc;