Skip to content

Commit 665c51f

Browse files
Ye Xingchenpalmer-dabbelt
authored andcommitted
riscv: mm: use bitmap_zero() API
bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero() instead of bitmap_clear(). Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/202305061711417142802@zte.com.cn Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 9389e67 commit 665c51f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/mm/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void __flush_context(void)
6767
lockdep_assert_held(&context_lock);
6868

6969
/* Update the list of reserved ASIDs and the ASID bitmap. */
70-
bitmap_clear(context_asid_map, 0, num_asids);
70+
bitmap_zero(context_asid_map, num_asids);
7171

7272
/* Mark already active ASIDs as used */
7373
for_each_possible_cpu(i) {

0 commit comments

Comments
 (0)