Commit 665c51f6 authored by Ye Xingchen's avatar Ye Xingchen Committed by Palmer Dabbelt

riscv: mm: use bitmap_zero() API

bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
instead of bitmap_clear().
Signed-off-by: default avatarYe Xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/202305061711417142802@zte.com.cnSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 9389e671
...@@ -67,7 +67,7 @@ static void __flush_context(void) ...@@ -67,7 +67,7 @@ static void __flush_context(void)
lockdep_assert_held(&context_lock); lockdep_assert_held(&context_lock);
/* Update the list of reserved ASIDs and the ASID bitmap. */ /* Update the list of reserved ASIDs and the ASID bitmap. */
bitmap_clear(context_asid_map, 0, num_asids); bitmap_zero(context_asid_map, num_asids);
/* Mark already active ASIDs as used */ /* Mark already active ASIDs as used */
for_each_possible_cpu(i) { for_each_possible_cpu(i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment