Skip to content

Commit 4be8ddb

Browse files
tititiou36Marc Zyngier
authored andcommitted
KVM: arm64: Slightly optimize flush_context()
bitmap_zero() is faster than bitmap_clear(), so use it to save a few cycles. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/97bf2743f3a302b3066aced02218b9da60690dd3.1681854412.git.christophe.jaillet@wanadoo.fr
1 parent 197b6b6 commit 4be8ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/vmid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void flush_context(void)
4747
int cpu;
4848
u64 vmid;
4949

50-
bitmap_clear(vmid_map, 0, NUM_USER_VMIDS);
50+
bitmap_zero(vmid_map, NUM_USER_VMIDS);
5151

5252
for_each_possible_cpu(cpu) {
5353
vmid = atomic64_xchg_relaxed(&per_cpu(active_vmids, cpu), 0);

0 commit comments

Comments
 (0)