• Benjamin Herrenschmidt's avatar
    powerpc: Call CPU ->restore callback earlier on secondary CPUs · ad0693ee
    Benjamin Herrenschmidt authored
    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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    ad0693ee
head_64.S 19.5 KB