
2016-01-06 8:25 GMT+08:00 Simon Glass sjg@chromium.org:
On 4 January 2016 at 01:00, Miao Yan yanmiaobest@gmail.com wrote:
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
arch/x86/cpu/mp_init.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ arch/x86/cpu/qemu/cpu.c | 5 ---- 2 files changed, 73 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
Maybe cpu_qemu_bind() isn't needed now?
Right, this can be removed.
Hi Bin, do you have any comments on this one ?
Thanks, Miao