diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-14 14:39:56 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-19 09:08:26 +0530 |
commit | 19bd531a15d396130056c4853af487e498152795 (patch) | |
tree | 4f02b4430379b6d54a08f269e33a05e7b46654da /include/sbi/sbi_hsm.h | |
parent | e23d3ba936698c52c83bbeed8d844fea22ae0859 (diff) |
lib: sbi_hsm: Simplify hart_get_state() and hart_started() APIs
We remove redundant scratch parameter from sbi_hsm_hart_get_state()
and sbi_hsm_hart_started() APIs.
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>
Diffstat (limited to 'include/sbi/sbi_hsm.h')
-rw-r--r-- | include/sbi/sbi_hsm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h index 227bb6b..11ae3ac 100644 --- a/include/sbi/sbi_hsm.h +++ b/include/sbi/sbi_hsm.h @@ -24,9 +24,9 @@ void __noreturn sbi_hsm_exit(struct sbi_scratch *scratch); int sbi_hsm_hart_start(struct sbi_scratch *scratch, u32 hartid, ulong saddr, ulong priv); int sbi_hsm_hart_stop(struct sbi_scratch *scratch, bool exitnow); -int sbi_hsm_hart_get_state(struct sbi_scratch *scratch, u32 hartid); +int sbi_hsm_hart_get_state(u32 hartid); int sbi_hsm_hart_state_to_status(int state); -bool sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid); +bool sbi_hsm_hart_started(u32 hartid); int sbi_hsm_hart_started_mask(struct sbi_scratch *scratch, ulong hbase, ulong *out_hmask); void sbi_hsm_prepare_next_jump(struct sbi_scratch *scratch, u32 hartid); |