Skip to content

Commit d680eb8

Browse files
committed
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>
1 parent 70ba2b6 commit d680eb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/xen/cpu_hotplug.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ static void enable_hotplug_cpu(int cpu)
1010
if (!cpu_present(cpu))
1111
arch_register_cpu(cpu);
1212

13-
cpu_set(cpu, cpu_present_map);
13+
set_cpu_present(cpu, true);
1414
}
1515

1616
static void disable_hotplug_cpu(int cpu)
1717
{
1818
if (cpu_present(cpu))
1919
arch_unregister_cpu(cpu);
2020

21-
cpu_clear(cpu, cpu_present_map);
21+
set_cpu_present(cpu, false);
2222
}
2323

2424
static void vcpu_hotplug(unsigned int cpu)

0 commit comments

Comments
 (0)