x86: mp_init: Adjust bsp_init() to return more information
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:14 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:44 +0000 (09:46 +0800)
commit20b049e88548a88bac3609fae99790bb79ee1233
tree058a6787c565dbf0fdf803f3d97e16176acaa9ff
parent77a5e2d3bc61f65336924d59a08ebe233b46a545
x86: mp_init: Adjust bsp_init() to return more information

This function is misnamed since it does not actually init the BSP. Also
it is convenient to adjust it to return a little more information.

Rename and update the function, to allow it to return the BSP CPU device
and number, as well as the total number of CPUs.

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