Thread (7 messages) flat view 7 messages, 2 authors, 2014-08-06

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

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2014-08-06 04:59:09

On Tue, 2014-08-05 at 19:48 -0500, Scott Wood wrote:
I'll do s/mmu_allcpus/this_mmu/ but early_init_mmu() needs to do things
both before and after early_init_mmu_common().  Do you want two new
functions (before and after) or is it OK to just rename
early_init_mmu_allcpus() and put a comment before early_init_mmu()
saying it's just for the boot cpu?
Do we really need that before/after ? The "after" code is the linear
mapping setup but does it rely on the MAS4 setting done above ?

Otherwise you can do before/after using a separate function
mmu_set_linear_map()

Always nicer to break down too large functions anyway.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help