aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/smpboot.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-11-08 10:34:33 +0100
committerJan Beulich <jbeulich@suse.com>2011-11-08 10:34:33 +0100
commite82e07391c18eddbe7f6f969e4c7181468fe232a (patch)
tree225abf0d0bc5784009951f3647ab376bd3a7f873 /xen/arch/x86/smpboot.c
parentd814eb02551c8d5150947bc5418eff42ec93a07e (diff)
downloadxen-e82e07391c18eddbe7f6f969e4c7181468fe232a.tar.gz
xen-e82e07391c18eddbe7f6f969e4c7181468fe232a.tar.bz2
xen-e82e07391c18eddbe7f6f969e4c7181468fe232a.zip
eliminate cpu_set()
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/smpboot.c')
-rw-r--r--xen/arch/x86/smpboot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c
index 855e6216f1..1bd1db039d 100644
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -244,7 +244,7 @@ static void set_cpu_sibling_map(int cpu)
int i;
struct cpuinfo_x86 *c = cpu_data;
- cpu_set(cpu, cpu_sibling_setup_map);
+ cpumask_set_cpu(cpu, &cpu_sibling_setup_map);
if ( c[cpu].x86_num_siblings > 1 )
{
@@ -380,7 +380,7 @@ void start_secondary(void *unused)
*/
lock_vector_lock();
__setup_vector_irq(cpu);
- cpu_set(cpu, cpu_online_map);
+ cpumask_set_cpu(cpu, &cpu_online_map);
unlock_vector_lock();
init_percpu_time();
@@ -804,8 +804,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
void __init smp_prepare_boot_cpu(void)
{
- cpu_set(smp_processor_id(), cpu_online_map);
- cpu_set(smp_processor_id(), cpu_present_map);
+ cpumask_set_cpu(smp_processor_id(), &cpu_online_map);
+ cpumask_set_cpu(smp_processor_id(), &cpu_present_map);
}
static void
@@ -933,7 +933,7 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm)
"break assumed cross-CPU TSC coherency.\n"
" ** Consider using boot parameter \"tsc=skewed\" "
"which forces TSC emulation where appropriate.\n", cpu);
- cpu_set(cpu, tsc_sync_cpu_mask);
+ cpumask_set_cpu(cpu, &tsc_sync_cpu_mask);
}
srat_detect_node(cpu);