diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-04-05 13:00:54 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-04-05 13:00:54 +0100 |
commit | 4551775df58d42e2dcfd2a8ac4bcc713709e8b81 (patch) | |
tree | 5e10216631c44c2ec3102f85ca58646d766f46e5 /xen/common/sched_sedf.c | |
parent | 2bbb3d0fe9149b302b42c98cffe3fbf1aa286548 (diff) | |
download | xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.tar.gz xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.tar.bz2 xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.zip |
Remove direct cpumask_t members from struct vcpu and struct domain
The CPU masks embedded in these structures prevent NR_CPUS-independent
sizing of these structures.
Basic concept (in xen/include/cpumask.h) taken from recent Linux.
For scalability purposes, many other uses of cpumask_t should be
replaced by cpumask_var_t, particularly local variables of functions.
This implies that no functions should have by-value cpumask_t
parameters, and that the whole old cpumask interface (cpus_...())
should go away in favor of the new (cpumask_...()) one.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/sched_sedf.c')
-rw-r--r-- | xen/common/sched_sedf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c index 4d95753a9e..37fd3b56f8 100644 --- a/xen/common/sched_sedf.c +++ b/xen/common/sched_sedf.c @@ -448,7 +448,7 @@ static int sedf_pick_cpu(const struct scheduler *ops, struct vcpu *v) cpumask_t *online; online = SEDF_CPUONLINE(v->domain->cpupool); - cpus_and(online_affinity, v->cpu_affinity, *online); + cpumask_and(&online_affinity, v->cpu_affinity, online); return first_cpu(online_affinity); } |