x86: mp: Support APs waiting for instructions
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:16 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:45 +0000 (09:46 +0800)
commitc33aa3527d7a005f980839ef3607c305ff504054
tree7356a8e31947ee950b1881ab8372ab898233ffde
parent8bccbc5ac006d9bd14aca438a7b45ac9f583f8c5
x86: mp: Support APs waiting for instructions

At present the APs (non-boot CPUs) are inited once and then parked ready
for the OS to use them. However in some cases we want to send new requests
through, such as to change MTRRs and keep them consistent across CPUs.

Change the last state of the flight plan to go into a wait loop, accepting
instructions from the main CPU.

Drop cpu_map since it is not used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig
arch/x86/cpu/mp_init.c
arch/x86/include/asm/mp.h