diff options
author | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2012-01-24 14:19:58 +0000 |
---|---|---|
committer | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2012-01-24 14:19:58 +0000 |
commit | 9b80635f9dd46b584f04c8e948a71c48bd412f96 (patch) | |
tree | 65d633f3bdd797f2207ecd2fef863ccf48c2d07c /xen/common/domctl.c | |
parent | 04b9829949d79e753c8047f4ef620a82b1743349 (diff) | |
download | xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.tar.gz xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.tar.bz2 xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.zip |
introduce and use common macros for selecting cpupool based cpumasks
There are several instances of the same construct finding the cpumask
for a cpupool. Use macros instead.
Signed-off-by: juergen.gross@ts.fujitsu.com
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r-- | xen/common/domctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 14ab515ae7..5b0fc4a511 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -518,7 +518,7 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl) goto maxvcpu_out; ret = -ENOMEM; - online = (d->cpupool == NULL) ? &cpu_online_map : d->cpupool->cpu_valid; + online = cpupool_online_cpumask(d->cpupool); if ( max > d->max_vcpus ) { struct vcpu **vcpus; |