[U-Boot] [PATCH v5 6/8] x86: qemu: fix cpu device in smp boot
Simon Glass
sjg at chromium.org
Wed Jan 6 01:25:30 CET 2016
On 4 January 2016 at 01:00, Miao Yan <yanmiaobest at 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 at 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 at chromium.org>
Maybe cpu_qemu_bind() isn't needed now?
More information about the U-Boot
mailing list