projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
197b6b6
)
KVM: arm64: Slightly optimize flush_context()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Tue, 18 Apr 2023 21:47:37 +0000
(23:47 +0200)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 20 Apr 2023 08:10:28 +0000
(09:10 +0100)
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
arch/arm64/kvm/vmid.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/vmid.c
b/arch/arm64/kvm/vmid.c
index 08978d0672e7e947b0afbca0eb7d5ae0d9be440a..bbf0677cfefa9c8d2fc4f8157194589673ae1a02 100644
(file)
--- 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);