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>
This commit is contained in:
Anup Patel
2020-03-18 15:20:12 +05:30
committed by Anup Patel
parent 680b09872d
commit db187d616c
5 changed files with 7 additions and 10 deletions

View File

@@ -80,7 +80,7 @@ int sbi_ipi_send_many(struct sbi_scratch *scratch, ulong hmask, ulong hbase,
ulong i, m;
if (hbase != -1UL) {
rc = sbi_hsm_hart_started_mask(scratch, hbase, &m);
rc = sbi_hsm_hart_started_mask(hbase, &m);
if (rc)
return rc;
m &= hmask;
@@ -92,7 +92,7 @@ int sbi_ipi_send_many(struct sbi_scratch *scratch, ulong hmask, ulong hbase,
}
} else {
hbase = 0;
while (!sbi_hsm_hart_started_mask(scratch, hbase, &m)) {
while (!sbi_hsm_hart_started_mask(hbase, &m)) {
/* Send IPIs */
for (i = hbase; m; i++, m >>= 1) {
if (m & 1UL)