]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Call CPU ->restore callback earlier on secondary CPUs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 1 Feb 2011 01:13:09 +0000 (12:13 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 01:03:24 +0000 (11:03 +1000)
commit20033eafcb597224bd74347c0bf2b044605e10f0
tree994d7ef63c3356e3dc90372a2abe961430769a29
parentcbe7e3b851337469e88ba8cfe6f8e2d13218efb0
powerpc: Call CPU ->restore callback earlier on secondary CPUs

We do it before we loop on the PACA start flag. This way, we get a
chance to set critical SPRs on all CPUs before Linux tries to start
them up, which avoids problems when changing some bits such as LPCR
bits that need to be identical on all threads of a core or similar
things like that. Ideally, some of that should also be done before
the MMU is enabled, but that's a separate issue which would require
moving some of the SMP startup code earlier, let's not get there
for now, it works with that change alone.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/head_64.S