lib: sbi_scratch: Don't set hartid_to_scratch table for disabled HART
authorAnup Patel <anup.patel@wdc.com>
Sat, 14 Mar 2020 13:51:24 +0000 (19:21 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 19 Mar 2020 03:47:08 +0000 (09:17 +0530)
commitc9f60fc6b7d940c970d4562656424aa9519e9b90
tree775074d420e9d30950e5004457acdbabfd5c2cba
parentbd6ef02d47015706bc7a79cc16b3f19946889a3b
lib: sbi_scratch: Don't set hartid_to_scratch table for disabled HART

As a step towards supporting discontinuous and sparse HART ids, we
don't set hartid_to_scratch table for disabled HARTs.

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_scratch.c