forked from Mirrors/opensbi
lib: Fix return type of sbi_hsm_hart_started()
The return type of sbi_hsm_hart_started() should be bool. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -69,9 +69,8 @@ int sbi_hsm_hart_get_state(struct sbi_scratch *scratch, u32 hartid)
|
|||||||
return hstate;
|
return hstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid)
|
bool sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (sbi_hsm_hart_get_state(scratch, hartid) == SBI_HART_STARTED)
|
if (sbi_hsm_hart_get_state(scratch, hartid) == SBI_HART_STARTED)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user