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 <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 9389e67 commit 665c51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)