diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:36:10 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-08 10:36:10 +0100 |
commit | 22bdce1c04881c0e909817ee11f7cecd6c852d8c (patch) | |
tree | 445ece053822f839c700f30d0159b4b73da68465 /xen/common/domctl.c | |
parent | fe9ff5a9d54cced306aefaba126340e0c596717e (diff) | |
download | xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.gz xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.tar.bz2 xen-22bdce1c04881c0e909817ee11f7cecd6c852d8c.zip |
eliminate first_cpu() etc
This includes the conversion from for_each_cpu_mask() to for_each-cpu().
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/domctl.c')
-rw-r--r-- | xen/common/domctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 74664f4ebc..6705a573df 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -190,7 +190,7 @@ static unsigned int default_vcpu0_location(cpumask_t *online) cpu = cpumask_first(&cpu_exclude_map); if ( cpumask_weight(&cpu_exclude_map) > 1 ) cpu = cpumask_next(cpu, &cpu_exclude_map); - for_each_cpu_mask(i, *online) + for_each_cpu(i, online) { if ( cpumask_test_cpu(i, &cpu_exclude_map) ) continue; @@ -541,7 +541,7 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl) cpu = (i == 0) ? default_vcpu0_location(online) : - cycle_cpu(d->vcpu[i-1]->processor, *online); + cpumask_cycle(d->vcpu[i-1]->processor, online); if ( alloc_vcpu(d, i, cpu) == NULL ) goto maxvcpu_out; |