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/arch/x86/setup.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/arch/x86/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 8bc77b0fc8..bca36ed1aa 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -229,9 +229,9 @@ static void __init normalise_cpu_order(void) * Find remaining CPU with longest-prefix match on APIC ID. * Among identical longest-prefix matches, pick the smallest APIC ID. */ - for ( j = next_cpu(i, cpu_present_map); + for ( j = cpumask_next(i, &cpu_present_map); j < nr_cpu_ids; - j = next_cpu(j, cpu_present_map) ) + j = cpumask_next(j, &cpu_present_map) ) { diff = x86_cpu_to_apicid[j] ^ apicid; while ( diff & (diff-1) ) @@ -248,12 +248,12 @@ static void __init normalise_cpu_order(void) /* If no match then there must be no CPUs remaining to consider. */ if ( min_cpu >= nr_cpu_ids ) { - BUG_ON(next_cpu(i, cpu_present_map) < nr_cpu_ids); + BUG_ON(cpumask_next(i, &cpu_present_map) < nr_cpu_ids); break; } /* Switch the best-matching CPU with the next CPU in logical order. */ - j = next_cpu(i, cpu_present_map); + j = cpumask_next(i, &cpu_present_map); apicid = x86_cpu_to_apicid[min_cpu]; x86_cpu_to_apicid[min_cpu] = x86_cpu_to_apicid[j]; x86_cpu_to_apicid[j] = apicid; |