cpumask: Use modern cpumask style in Xen
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 3 Nov 2009 04:28:38 +0000 (14:58 +1030)
committerIngo Molnar <mingo@elte.hu>
Wed, 4 Nov 2009 12:19:50 +0000 (13:19 +0100)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
LKML-Reference: <200911031458.38406.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/smp.c
drivers/xen/cpu_hotplug.c

index fe03eeed7b48d383ec76d04bb9d0d92e6b53a7ff..738da0cb0d8b0622d1fba7decf51f54692a32da7 100644 (file)
@@ -73,7 +73,7 @@ static __cpuinit void cpu_bringup(void)
 
        xen_setup_cpu_clockevents();
 
-       cpu_set(cpu, cpu_online_map);
+       set_cpu_online(cpu, true);
        percpu_write(cpu_state, CPU_ONLINE);
        wmb();
 
index bdfd584ad853ac379e0b3ed9975034e86faa27c4..0f765a92018913ff93791a3c97c6d7d094c586df 100644 (file)
@@ -86,7 +86,7 @@ static int setup_cpu_watcher(struct notifier_block *notifier,
        for_each_possible_cpu(cpu) {
                if (vcpu_online(cpu) == 0) {
                        (void)cpu_down(cpu);
-                       cpu_clear(cpu, cpu_present_map);
+                       set_cpu_present(cpu, false);
                }
        }