]> xenbits.xensource.com Git - xen.git/commit
credit2: replace cpumask_first() uses
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2013 13:05:39 +0000 (15:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2013 13:05:39 +0000 (15:05 +0200)
commita6aed7607de96904a96b8800b454511cf8334979
treeca8a64c19cd121416483658fc9e72caa579fa1b4
parent105ee865be224999e301b4303c740c1143b67b1d
credit2: replace cpumask_first() uses

... with cpumask_any() or cpumask_cycle().

In one case this also allows elimination of a cpumask_empty() call,
and while doing this I also spotted a redundant use of
cpumask_weight(). (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>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c