[PATCH 2/2] powerpc/nohash: Split __early_init_mmu() into boot and secondary

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Aug 5 14:36:50 EST 2014


On Fri, 2014-08-01 at 22:07 -0500, Scott Wood wrote:

>  
> -void __init early_init_mmu(void)
> -{
> -	__early_init_mmu(1);
> -}
> -
>  void early_init_mmu_secondary(void)
>  {
> -	__early_init_mmu(0);
> +	early_init_mmu_allcpus();
>  }

Small nit, it took me 30s too long to figure out what you were doing due
to the naming above :)

Call the latter early_init_this_mmu() and keep the global one separate
such that early_init_mmu() does:

	early_init_mmu_common();
	early_init_this_mmu();

Cheers,
Ben.




More information about the Linuxppc-dev mailing list