]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Avoid waiting for secondary hold spinloop with OPAL
authorNicholas Piggin <npiggin@gmail.com>
Mon, 23 Oct 2017 08:05:07 +0000 (18:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Nov 2017 11:00:54 +0000 (22:00 +1100)
commit32747bca3db60f0ab1024144dd1703e7838052ad
treec9e8e9457c3057d4ea731eeb12c9715b961d26ac
parentd7bcbd6eaa29e5961ff2d959cc166f1fa88279ab
powerpc/powernv: Avoid waiting for secondary hold spinloop with OPAL

OPAL boot does not insert secondaries at 0x60 to wait at the secondary
hold spinloop. Instead they are started later, and inserted at
generic_secondary_smp_init(), which is after the secondary hold
spinloop.

Avoid waiting on this spinloop when booting with OPAL firmware. This
wait always times out that case.

This saves 100ms boot time on powernv, and 10s of seconds of real time
when booting on the simulator in SMP.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/setup_64.c