diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 14:49:56 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 14:49:56 +1030 |
commit | d680eb8bcd0e43b20067fd2c810d76463db5444e (patch) | |
tree | 792da1948c961008b23dc03760fbe4fe458a9c7a /drivers/xen/cpu_hotplug.c | |
parent | 70ba2b6a70f0077707977e3b107478768492040d (diff) | |
download | linux-3.10-d680eb8bcd0e43b20067fd2c810d76463db5444e.tar.gz linux-3.10-d680eb8bcd0e43b20067fd2c810d76463db5444e.tar.bz2 linux-3.10-d680eb8bcd0e43b20067fd2c810d76463db5444e.zip |
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>
Diffstat (limited to 'drivers/xen/cpu_hotplug.c')
-rw-r--r-- | drivers/xen/cpu_hotplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c index 974f56d1ebe..5f54c01c156 100644 --- a/drivers/xen/cpu_hotplug.c +++ b/drivers/xen/cpu_hotplug.c @@ -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) |