diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-04-18 23:47:37 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-04-20 10:10:28 +0200 |
commit | 4be8ddb48b1b6c6067fb59c846b9c6e19d6efe14 (patch) | |
tree | 83988e982d1f3e1d227ae8294e1449ba5946086a /arch | |
parent | Linux 6.3-rc4 (diff) | |
download | linux-4be8ddb48b1b6c6067fb59c846b9c6e19d6efe14.tar.xz linux-4be8ddb48b1b6c6067fb59c846b9c6e19d6efe14.zip |
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/97bf2743f3a302b3066aced02218b9da60690dd3.1681854412.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kvm/vmid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/vmid.c b/arch/arm64/kvm/vmid.c index 08978d0672e7..bbf0677cfefa 100644 --- a/arch/arm64/kvm/vmid.c +++ b/arch/arm64/kvm/vmid.c @@ -47,7 +47,7 @@ static void flush_context(void) int cpu; u64 vmid; - bitmap_clear(vmid_map, 0, NUM_USER_VMIDS); + bitmap_zero(vmid_map, NUM_USER_VMIDS); for_each_possible_cpu(cpu) { vmid = atomic64_xchg_relaxed(&per_cpu(active_vmids, cpu), 0); |