diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-02 14:03:07 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-11 13:00:30 +0300 |
commit | eede1aa7c7f134192ca734e5a2e76ff1588c97d5 (patch) | |
tree | 3b89591ae20eaf0e1ec035db8ecdba4c47a9fad7 /lib/sbi/sbi_init.c | |
parent | 9aad831e87dae70bf78357d49529c7ee56bd7175 (diff) | |
download | opensbi-eede1aa7c7f134192ca734e5a2e76ff1588c97d5.tar.xz |
lib: sbi_hart: Remove HART available mask and related APIs
The HART available mask and related APIs are now totally redundant
because of more extensive HART state machine implemented by sbi_hsm.
Due to above, we remove HART available mask and related APIs.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index bfc59e4..e7afa1e 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -196,8 +196,6 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) wake_coldboot_harts(scratch, hartid); - sbi_hart_mark_available(hartid); - init_count = sbi_scratch_offset_ptr(scratch, init_count_offset); (*init_count)++; @@ -249,8 +247,6 @@ static void __noreturn init_warmboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - sbi_hart_mark_available(hartid); - init_count = sbi_scratch_offset_ptr(scratch, init_count_offset); (*init_count)++; @@ -326,8 +322,6 @@ void __noreturn sbi_exit(struct sbi_scratch *scratch) if (sbi_platform_hart_disabled(plat, hartid)) sbi_hart_hang(); - sbi_hart_unmark_available(hartid); - sbi_platform_early_exit(plat); sbi_timer_exit(scratch); |