diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2016-01-07 01:32:04 -0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-01-13 12:20:16 +0800 |
commit | de752c5e73d8fa02a3cc585ca346dae0be86c14d (patch) | |
tree | 662e5f568a281eeac201be2ebe92213f210397a6 /common/cmd_cplbinfo.c | |
parent | b28cecdfb8976a88d208879df0aff1ca69c07de5 (diff) | |
download | u-boot-de752c5e73d8fa02a3cc585ca346dae0be86c14d.tar.gz u-boot-de752c5e73d8fa02a3cc585ca346dae0be86c14d.tar.xz u-boot-de752c5e73d8fa02a3cc585ca346dae0be86c14d.zip |
x86: qemu: fix cpu device in smp boot
Currently, when booting with more that one CPU enabled, U-Boot scans
'cpu' node in device tree and calculates CPU number. This does not scale
well as changing CPU number also requires modifying .dts and re-compiling
U-Boot.
This patch uses fw_cfg interface provided by QEMU to detect online CPU
number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
model.
Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common/cmd_cplbinfo.c')
0 files changed, 0 insertions, 0 deletions