2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-18 10:34:24 +08:00

cpumask: make Xen use the new operators.

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>
This commit is contained in:
Rusty Russell 2009-03-13 14:49:56 +10:30
parent 70ba2b6a70
commit d680eb8bcd

View File

@ -10,7 +10,7 @@ static void enable_hotplug_cpu(int cpu)
if (!cpu_present(cpu)) if (!cpu_present(cpu))
arch_register_cpu(cpu); arch_register_cpu(cpu);
cpu_set(cpu, cpu_present_map); set_cpu_present(cpu, true);
} }
static void disable_hotplug_cpu(int cpu) static void disable_hotplug_cpu(int cpu)
@ -18,7 +18,7 @@ static void disable_hotplug_cpu(int cpu)
if (cpu_present(cpu)) if (cpu_present(cpu))
arch_unregister_cpu(cpu); arch_unregister_cpu(cpu);
cpu_clear(cpu, cpu_present_map); set_cpu_present(cpu, false);
} }
static void vcpu_hotplug(unsigned int cpu) static void vcpu_hotplug(unsigned int cpu)