lib: sbi: Remove redundant sbi_hsm_hart_started() function
authorAnup Patel <anup.patel@wdc.com>
Tue, 2 Feb 2021 05:06:14 +0000 (10:36 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 3 Mar 2021 04:48:23 +0000 (10:18 +0530)
commit638c948ab90e8630be5c43c17abb63cb3154919f
tree2aa5e9d4c77b160e775052b93b776dc6f056cd86
parent7c867fd19f92ac36aa2cd329f1eb687c6e630a26
lib: sbi: Remove redundant sbi_hsm_hart_started() function

The sbi_hsm_hart_started() function is only used by sbi_hsm_hart_stop()
for checking state of calling HART and current domain assignment.

The atomic_cmpxchg() called by sbi_hsm_hart_stop() will check state of
calling hart anyway and domain assignment can be checked by other domain
function such as sbi_domain_is_assigned_hart().

This means sbi_hsm_hart_started() is redundant and can be removed.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hsm.c