diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-14 14:20:22 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-19 09:04:29 +0530 |
commit | e23d3ba936698c52c83bbeed8d844fea22ae0859 (patch) | |
tree | 8f0709f322cf42f04f5eab85f20bb240133aa519 /lib/sbi/sbi_tlb.c | |
parent | 87a7ef7659e27cdd5ef9a639cd68cf628be3d2d3 (diff) |
include: Simplify HART id to scratch macro
This patch simplify HART id to scratch macro as follows:
1. Remove current "scratch" pointer argument because now we
use HART id to scratch table
2. Rename sbi_hart_id_to_scratch() to sbi_hartid_to_scratch()
to have macro name consistent with the name of callback
in struct sbi_scratch
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_tlb.c')
-rw-r--r-- | lib/sbi/sbi_tlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_tlb.c b/lib/sbi/sbi_tlb.c index a46ddfe..b21154c 100644 --- a/lib/sbi/sbi_tlb.c +++ b/lib/sbi/sbi_tlb.c @@ -197,7 +197,7 @@ static void sbi_tlb_entry_process(struct sbi_scratch *scratch, sbi_tlb_local_flush(tinfo); sbi_hartmask_for_each_hart(rhartid, &tinfo->smask) { - rscratch = sbi_hart_id_to_scratch(scratch, rhartid); + rscratch = sbi_hartid_to_scratch(rhartid); rtlb_sync = sbi_scratch_offset_ptr(rscratch, tlb_sync_off); while (atomic_raw_xchg_ulong(rtlb_sync, 1)) ; } |