]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nohash: Split __early_init_mmu() into boot and secondary
authorScott Wood <scottwood@freescale.com>
Fri, 8 Aug 2014 23:44:01 +0000 (18:44 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Aug 2014 05:13:25 +0000 (15:13 +1000)
commit7bd42b4093b91ed37b7bdc24e61c908e3e5f4ca3
tree586e945fe3bd477a0575f9492adad84966517e49
parente28573576d090e3bfd01930f677652eb8a7f7d12
powerpc/nohash: Split __early_init_mmu() into boot and secondary

__early_init_mmu() does some things that are really only needed by the
boot cpu.  On FSL booke, This includes calling
memblock_enforce_memory_limit(), which is labelled __init.  Secondary
cpu init code can't be __init as that would break CPU hotplug.

While it's probably a bug that memblock_enforce_memory_limit() isn't
__init_memblock instead, there's no reason why we should be doing this
stuff for secondary cpus in the first place.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/tlb_nohash.c