Skip to content

Commit

Permalink
cpumask: make Xen use the new operators.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rusty Russell committed Mar 13, 2009
1 parent 70ba2b6 commit d680eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/xen/cpu_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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)
{
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)
Expand Down

0 comments on commit d680eb8

Please sign in to comment.