diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:19:44 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:19:44 +0200 |
commit | 3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e (patch) | |
tree | 02fa5b020be5edebcbc225f9bd6a9d413917055f /xen/common/sched_credit2.c | |
parent | 20307695e5c22a58b4cce35fba5333375da5a7fa (diff) | |
download | xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.gz xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.bz2 xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.zip |
eliminate cpumask accessors referencing NR_CPUS
... in favor of using the new, nr_cpumask_bits-based ones.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/sched_credit2.c')
-rw-r--r-- | xen/common/sched_credit2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 398ccad159..5033819d6a 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -507,19 +507,19 @@ runq_tickle(const struct scheduler *ops, unsigned int cpu, struct csched_vcpu *n } /* Get a mask of idle, but not tickled */ - cpus_andnot(mask, rqd->idle, rqd->tickled); + cpumask_andnot(&mask, &rqd->idle, &rqd->tickled); /* If it's not empty, choose one */ - if ( !cpus_empty(mask) ) + if ( !cpumask_empty(&mask) ) { - ipid=first_cpu(mask); + ipid = cpumask_first(&mask); goto tickle; } /* Otherwise, look for the non-idle cpu with the lowest credit, * skipping cpus which have been tickled but not scheduled yet */ - cpus_andnot(mask, rqd->active, rqd->idle); - cpus_andnot(mask, mask, rqd->tickled); + cpumask_andnot(&mask, &rqd->active, &rqd->idle); + cpumask_andnot(&mask, &mask, &rqd->tickled); for_each_cpu_mask(i, mask) { @@ -573,7 +573,7 @@ tickle: sizeof(d), (unsigned char *)&d); } - cpu_set(ipid, rqd->tickled); + cpumask_set_cpu(ipid, &rqd->tickled); cpu_raise_softirq(ipid, SCHEDULE_SOFTIRQ); no_tickle: |