diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-05-10 04:54:23 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-06-03 16:52:58 +0300 |
commit | d603fd8dd35f6028bb09cd2e9ec6557c4bc0dd95 (patch) | |
tree | 5d7edcbea05827bd1852cedc90a8d6efbaf4dd60 /tools/include/linux/bitmap.h | |
parent | a7ef9b455c7ca8f07a5b4bd967a3c39c7434d43f (diff) | |
download | linux-d603fd8dd35f6028bb09cd2e9ec6557c4bc0dd95.tar.xz |
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 <bp@alien8.de>
CC: Dave Hansen <dave.hansen@linux.intel.com>
CC: H. Peter Anvin <hpa@zytor.com>
CC: Ingo Molnar <mingo@redhat.com>
CC: Jim Mattson <jmattson@google.com>
CC: Joerg Roedel <joro@8bytes.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Sean Christopherson <seanjc@google.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
CC: Wanpeng Li <wanpengli@tencent.com>
CC: kvm@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: x86@kernel.org
Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'tools/include/linux/bitmap.h')
0 files changed, 0 insertions, 0 deletions