summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/xen.h
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-01-23 10:38:37 -0800
committerYury Norov <yury.norov@gmail.com>2022-05-02 06:30:39 -0700
commitfe06a0c09b47ea58ba2b01c8941af16bd45c02df (patch)
tree027caf20408aa920974542f09190a2e5d3367b7f /arch/x86/kvm/xen.h
parent64b87c1a1875803296a47b6b03f73dd2b292932f (diff)
KVM: x86: replace bitmap_weight with bitmap_empty where appropriate
In some places kvm/hyperv.c code calls bitmap_weight() to check if any bit of a given bitmap is set. It's better to use bitmap_empty() in that case because bitmap_empty() stops traversing the bitmap as soon as it finds first set bit, while bitmap_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <yury.norov@gmail.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/x86/kvm/xen.h')
0 files changed, 0 insertions, 0 deletions