From 3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 21 Oct 2011 09:19:44 +0200 Subject: eliminate cpumask accessors referencing NR_CPUS ... in favor of using the new, nr_cpumask_bits-based ones. Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- xen/common/schedule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xen/common/schedule.c') diff --git a/xen/common/schedule.c b/xen/common/schedule.c index e9a8600b8d..c4ccc79997 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -595,8 +595,8 @@ int vcpu_set_affinity(struct vcpu *v, const cpumask_t *affinity) if ( v->domain->is_pinned ) return -EINVAL; online = VCPU2ONLINE(v); - cpus_and(online_affinity, *affinity, *online); - if ( cpus_empty(online_affinity) ) + cpumask_and(&online_affinity, affinity, online); + if ( cpumask_empty(&online_affinity) ) return -EINVAL; vcpu_schedule_lock_irq(v); -- cgit v1.2.3