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)
commit339a3293f4e493a6c40f71e4faab0c8389174313
treec9e8e9457c3057d4ea731eeb12c9715b961d26ac
parent0b2f5a8a792755c88bd786f89712a9fac9967b2b
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