lib: sbi_init: Use hartmask for coldboot wait
authorAnup Patel <anup.patel@wdc.com>
Wed, 4 Mar 2020 12:00:21 +0000 (17:30 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 11 Mar 2020 10:00:08 +0000 (15:30 +0530)
commit2b945fc180026d8eef701226a9bf0a82976c71c1
tree9575173dbce4af1e57a8fe17259b49d01e22b9a8
parent71d2b837c46e7528ab03bd6489fec86100681f22
lib: sbi_init: Use hartmask for coldboot wait

The coldboot_wait_bitmap is of fixed size and has __riscv_xlen
bits. This limits us to scale beyond __riscv_xlen HARTs hence
we replace coldboot_wait_bitmap with coldboot_wait_hmask which
is of type struct sbi_hartmask.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_init.c