]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: mp_init: Set up the CPU numbers at the start
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:13 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:44 +0000 (09:46 +0800)
commit77a5e2d3bc61f65336924d59a08ebe233b46a545
treeff41f0d9e6b634a30b1014d959b7db935f7889d3
parent36c184bd0a6b73ae3a3ca096a7d04e45c5301e14
x86: mp_init: Set up the CPU numbers at the start

At present each CPU is given a number when it starts itself up. While this
saves a tiny amount of time by doing the device-tree read in parallel, it
is confusing that the numbering happens on the fly.

Move this code into mp_init() and do it at the start.

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/cpu/mp_init.c