aboutsummaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_tlb.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-27 10:58:47 +0530
committerAnup Patel <anup@brainfault.org>2020-03-28 13:32:44 +0530
commit54b2779cfeeaaf7752df19deba56b79bad1caea6 (patch)
tree3c30256b912faa312f5dda584779e23a0dacc10f /lib/sbi/sbi_tlb.c
parentdd0f21c560f7139fc0c30bea1c264d8cb09144fe (diff)
include: sbi_tlb: Remove scratch parameter from sbi_tlb_request()
The sbi_ipi_send_many() should get current HART scratch pointer on it's own using eventually hence removing scratch parameter from sbi_tlb_request(). Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_tlb.c')
-rw-r--r--lib/sbi/sbi_tlb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sbi/sbi_tlb.c b/lib/sbi/sbi_tlb.c
index 1b66fdf..64ec28b 100644
--- a/lib/sbi/sbi_tlb.c
+++ b/lib/sbi/sbi_tlb.c
@@ -375,10 +375,10 @@ static struct sbi_ipi_event_ops tlb_ops = {
static u32 tlb_event = SBI_IPI_EVENT_MAX;
-int sbi_tlb_request(struct sbi_scratch *scratch, ulong hmask,
- ulong hbase, struct sbi_tlb_info *tinfo)
+int sbi_tlb_request(ulong hmask, ulong hbase, struct sbi_tlb_info *tinfo)
{
- return sbi_ipi_send_many(scratch, hmask, hbase, tlb_event, tinfo);
+ return sbi_ipi_send_many(sbi_scratch_thishart_ptr(),
+ hmask, hbase, tlb_event, tinfo);
}
int sbi_tlb_init(struct sbi_scratch *scratch, bool cold_boot)