aboutsummaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_hsm.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-18 15:20:12 +0530
committerAnup Patel <anup@brainfault.org>2020-03-19 09:23:12 +0530
commitdb187d616c6bfd9f01bbc566117bf5a6241660c1 (patch)
tree0a2ece0447e963d8ebe04fb31e0196a0331a49e8 /lib/sbi/sbi_hsm.c
parent680b09872dd9fe43adfaa29dd95d0d035f5e0ac2 (diff)
lib: sbi_hsm: Remove scratch parameter from hart_started_mask() API
The scratch parameter in sbi_hsm_hart_started_mask() API is now redundant hence removing it. 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 'lib/sbi/sbi_hsm.c')
-rw-r--r--lib/sbi/sbi_hsm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sbi/sbi_hsm.c b/lib/sbi/sbi_hsm.c
index 906a8eb..4a457ce 100644
--- a/lib/sbi/sbi_hsm.c
+++ b/lib/sbi/sbi_hsm.c
@@ -80,14 +80,12 @@ bool sbi_hsm_hart_started(u32 hartid)
/**
* Get ulong HART mask for given HART base ID
- * @param scratch the per-HART scratch pointer
* @param hbase the HART base ID
* @param out_hmask the output ulong HART mask
* @return 0 on success and SBI_Exxx (< 0) on failure
* Note: the output HART mask will be set to zero on failure as well.
*/
-int sbi_hsm_hart_started_mask(struct sbi_scratch *scratch,
- ulong hbase, ulong *out_hmask)
+int sbi_hsm_hart_started_mask(ulong hbase, ulong *out_hmask)
{
ulong i;
ulong hcount = SBI_HARTMASK_MAX_BITS;