diff options
author | Anup Patel <anup.patel@wdc.com> | 2018-12-21 07:39:33 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2018-12-21 07:39:33 +0300 |
commit | 6f02b6938f8e607d38ee8de5a59581d554af0d3f (patch) | |
tree | edcac6ee2fd3eff80d9d9fedd40070e24ed8c453 /platform/qemu/virt/platform.c | |
parent | b023176c17e655f9371df65f6fddc0c1bcbb1fc7 (diff) | |
download | opensbi-6f02b6938f8e607d38ee8de5a59581d554af0d3f.tar.xz |
lib: Introduce bitmap to track HARTs waiting for coldboot
On QEMU Virt, max supported HARTs are 8 but number of HARTs
actually depend on "-smp" command-line parameter passed to
QEMU. This creates problems in sbi_hart_wake_coldboot_harts()
because when number of HARTs are less than 8.
To tackle this, we introduce a bitmap to track HARTs waiting
for coldboot to finish. We wake only those HARTs who have
set their bit in coldboot bitmap.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/qemu/virt/platform.c')
0 files changed, 0 insertions, 0 deletions