]> git.baikalelectronics.ru Git - uboot.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)
commit6ea2c795938506d0d3b04d3f64820350996e7a4c
treeff41f0d9e6b634a30b1014d959b7db935f7889d3
parent87072929da36910462b78ba45192f59410e99372
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