domctl: replace cpumask_weight() uses
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2013 13:07:00 +0000 (15:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2013 13:07:00 +0000 (15:07 +0200)
commit30e9a840b822ea57319abc0d136945a150fb915b
tree4fe7020f252b39514c004dc34e61630845ba4d62
parentb845268509f30a4f4e8e5ca9e7d323f468d21044
domctl: replace cpumask_weight() uses

In one case it could easily be replaced by range checking the result of
a subsequent operation, and in general cpumask_next(), not always
needing to scan the whole bitmap, is more efficient than the specific
uses of cpumask_weight() here. (When running on big systems, operations
on CPU masks aren't cheap enough to use them carelessly.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/domctl.c