Skip to content

Commit 7832908

Browse files
Ye Xingchenavpatel
authored andcommitted
RISC-V: KVM: 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> Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 9561de3 commit 7832908

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kvm/tlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static void make_xfence_request(struct kvm *kvm,
296296
unsigned int actual_req = req;
297297
DECLARE_BITMAP(vcpu_mask, KVM_MAX_VCPUS);
298298

299-
bitmap_clear(vcpu_mask, 0, KVM_MAX_VCPUS);
299+
bitmap_zero(vcpu_mask, KVM_MAX_VCPUS);
300300
kvm_for_each_vcpu(i, vcpu, kvm) {
301301
if (hbase != -1UL) {
302302
if (vcpu->vcpu_id < hbase)

0 commit comments

Comments
 (0)