diff options
| author | Miao Yan <[email protected]> | 2016-01-07 01:32:04 -0800 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2016-01-13 12:20:16 +0800 |
| commit | de752c5e73d8fa02a3cc585ca346dae0be86c14d (patch) | |
| tree | 662e5f568a281eeac201be2ebe92213f210397a6 /scripts | |
| parent | b28cecdfb8976a88d208879df0aff1ca69c07de5 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
