* [PATCH] cpumask: make Xen use the new operators.
@ 2009-03-11 6:05 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2009-03-11 6:05 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: virtualization, linux-kernel, Ingo Molnar
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c
--- 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-11 6:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 6:05 [PATCH] cpumask: make Xen use the new operators Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox