diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:33:02 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:33:02 +0100 |
commit | d814eb02551c8d5150947bc5418eff42ec93a07e (patch) | |
tree | 1b7fae94255ff3e468d5f7ebb06c33e4daca6dfc /xen/common/cpupool.c | |
parent | 8996e454310d4fa3f587b65ccfe57e366e68a204 (diff) | |
download | xen-d814eb02551c8d5150947bc5418eff42ec93a07e.tar.gz xen-d814eb02551c8d5150947bc5418eff42ec93a07e.tar.bz2 xen-d814eb02551c8d5150947bc5418eff42ec93a07e.zip |
eliminate cpu_test_xyz()
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/common/cpupool.c')
-rw-r--r-- | xen/common/cpupool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/cpupool.c b/xen/common/cpupool.c index e3ad20bf37..781f667658 100644 --- a/xen/common/cpupool.c +++ b/xen/common/cpupool.c @@ -299,7 +299,7 @@ int cpupool_unassign_cpu(struct cpupool *c, unsigned int cpu) ret = -EBUSY; if ( (cpupool_moving_cpu != -1) && (cpu != cpupool_moving_cpu) ) goto out; - if ( cpu_isset(cpu, cpupool_locked_cpus) ) + if ( cpumask_test_cpu(cpu, &cpupool_locked_cpus) ) goto out; ret = 0; @@ -499,7 +499,7 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op) if ( cpu >= nr_cpu_ids ) goto addcpu_out; ret = -EBUSY; - if ( !cpu_isset(cpu, cpupool_free_cpus) ) + if ( !cpumask_test_cpu(cpu, &cpupool_free_cpus) ) goto addcpu_out; c = cpupool_find_by_id(op->cpupool_id); ret = -ENOENT; |