diff options
| author | Yury Norov <[email protected]> | 2022-05-10 01:54:23 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-06-03 13:52:58 +0000 |
| commit | d603fd8dd35f6028bb09cd2e9ec6557c4bc0dd95 (patch) | |
| tree | 5d7edcbea05827bd1852cedc90a8d6efbaf4dd60 /lib/bitmap.c | |
| parent | KVM: x86: hyper-v: fix type of valid_bank_mask (diff) | |
| download | kernel-d603fd8dd35f6028bb09cd2e9ec6557c4bc0dd95.tar.gz kernel-d603fd8dd35f6028bb09cd2e9ec6557c4bc0dd95.zip | |
KVM: x86: hyper-v: replace bitmap_weight() with hweight64()
kvm_hv_flush_tlb() applies bitmap API to a u64 variable valid_bank_mask.
Since valid_bank_mask has a fixed size, we can use hweight64() and avoid
excessive bloating.
CC: Borislav Petkov <[email protected]>
CC: Dave Hansen <[email protected]>
CC: H. Peter Anvin <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Jim Mattson <[email protected]>
CC: Joerg Roedel <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Sean Christopherson <[email protected]>
CC: Thomas Gleixner <[email protected]>
CC: Vitaly Kuznetsov <[email protected]>
CC: Wanpeng Li <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
Acked-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
