cpumask: make Xen use the new operators.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Mar 2009 04:19:56 +0000 (14:49 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Mar 2009 04:19:56 +0000 (14:49 +1030)
Impact: cleanup

In particular, *map are deprecated, and you have to use the accessors
as *mask are const.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: Jeremy Fitzhardinge <jeremy@xensource.com>

drivers/xen/cpu_hotplug.c

index 974f56d1ebe1fa6ba67a4998f96f63e1fbdc96e9..5f54c01c156872100ab8e2bf9f1ad74e08152abc 100644 (file)
@@ -10,7 +10,7 @@ static void enable_hotplug_cpu(int cpu)
        if (!cpu_present(cpu))
                arch_register_cpu(cpu);
 
-       cpu_set(cpu, cpu_present_map);
+       set_cpu_present(cpu, true);
 }
 
 static void disable_hotplug_cpu(int cpu)
@@ -18,7 +18,7 @@ static void disable_hotplug_cpu(int cpu)
        if (cpu_present(cpu))
                arch_unregister_cpu(cpu);
 
-       cpu_clear(cpu, cpu_present_map);
+       set_cpu_present(cpu, false);
 }
 
 static void vcpu_hotplug(unsigned int cpu)