diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-02-01 02:13:09 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-20 03:03:24 +0200 |
commit | ad0693ee722b93b63a89c845e99513f242e43aa6 (patch) | |
tree | 994d7ef63c3356e3dc90372a2abe961430769a29 /arch/powerpc/kernel/setup_32.c | |
parent | powerpc: Initialize TLB and LPID register on HV mode Power7 (diff) | |
download | linux-ad0693ee722b93b63a89c845e99513f242e43aa6.tar.xz linux-ad0693ee722b93b63a89c845e99513f242e43aa6.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
0 files changed, 0 insertions, 0 deletions