diff options
author | Ye Xingchen <[email protected]> | 2023-05-06 17:11:41 +0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-08-31 00:18:29 -0700 |
commit | 665c51f644433f4f976ffc13e14523aaceacf9fe (patch) | |
tree | a330b510372653bde4a12fdc5ca020e8b4d845eb | |
parent | 9389e6715f16a8de7aeeb0b2fd50f13e5a8938ef (diff) |
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]>
-rw-r--r-- | arch/riscv/mm/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index 12e22e7330e7..217fd4de6134 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -67,7 +67,7 @@ static void __flush_context(void) lockdep_assert_held(&context_lock); /* 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 */ for_each_possible_cpu(i) { |