lib: sbi: Optimize sbi_tlb
authorXiang W <wxjstz@126.com>
Tue, 11 Apr 2023 04:56:18 +0000 (12:56 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Apr 2023 07:07:55 +0000 (12:37 +0530)
commit66fa925353a133173e4f51a5ba247ee3e1a5943c
tree1abd21bc1a97714eda1b656cf4127d15801f1fe1
parent2868f26131308ff345382084681ea89c5b0159f1
lib: sbi: Optimize sbi_tlb

Originally, the process and sync of sbi_tlb need to wait for each other.
Evasion by atomic addition and subtraction.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_tlb.c